Announcement

Collapse
No announcement yet.

Trigger script node with Vray render?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trigger script node with Vray render?

    Is there any way to trigger a script node by launching a Vray render? The "software render" execution option only seems to work with the Maya software renderer.

  • #2
    Do you mean a pre/post - render script attached to a command line rendering execution ?

    In that case I guess it should look like that

    "C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r vray -yourotherflags -preRender <string>

    If you need more command line options: https://docs.chaosgroup.com/display/...atch+Rendering

    Kind Regards
    Pirmin

    Comment


    • #3
      I mean simply trigger it with one of the default events that are options within the expression editor when creating a script node, e.g. time change, UI reconfiguration, or in this case software render. In any case, I realized I think I can use on open anyway. Thanks.

      Comment


      • #4
        You can add a scriptJob somewhere that is on event. Maya's rendering event should be enough as a hook.
        What's your end goal here? There may be better and less risky solutions?
        Alex Yolov
        Product Manager
        V-Ray for Maya, Chaos Player
        www.chaos.com

        Comment


        • #5
          Am looking to set render element on/off status on a per render layer basis based on a string queried within the render layer name. Which is why I realized running it on scene open is fine because we always want those set up a certain way based on the layer name, whether rendering or not. I'm nowhere near done writing the actual script -- but was experimenting with using a script node to contain it.

          Comment


          • #6
            There's pre-layer mel script execution that might do the same job.
            On scene open you can execute script nodes, yes. Just beware that there's an option in Maya to disable running scripts on scene open - so if one machine has this option disabled - it won't work there.
            Alex Yolov
            Product Manager
            V-Ray for Maya, Chaos Player
            www.chaos.com

            Comment

            Working...
            X