Announcement

Collapse
No announcement yet.

Shave 7.18, Vray Hair3 - Writing .vrscenes

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

  • #16
    Id love to take a look, we use standalone as well for a variety of reasons, but if we were to go maya batch, wouldnt I need a maya license on each node on the farm?

    Comment


    • #17
      Here you go. It's kind of a mess that I cobbled together for testing. It works, but the render callbacks can be picky.

      We've been using #shaveDraWriter() to write the files then #shaveRenderOptions(writeDra= False) when writing the .vrscene, which adds a post render callback to #shaveDraVrscene(), which modifies the .vrscene, and also disables shave calculation.

      If the callback doesn't work, do it manually step by step, Set your .vrscene path, then run these a line at a time.
      Code:
      shaveDraWriter()
      import maya.cmds as mc
      postFrameMel = 'setAttr -type "string" vraySettings.preKeyframeMel "";'
      mc.setAttr('defaultRenderGlobals.postRenderMel', postFrameMel, type='string')
      #run this after writing the .vrscene
      shaveDraVrscene()



      All I ask is if you end up making this work better, please share!

      There is a strange frame offset issue with shaveRender -writeDraFile. It writes the *next* frame, not the current frame. That's why you'll see all the funky offsets.


      (Wouldn't allow .py extension. But it just runs from script editor)
      Attached Files
      Last edited by Zach Gray; 13-02-2013, 09:58 PM.

      Comment

      Working...
      X