V-Ray Post translate material script?

73 views
Skip to first unread message

Kiernan

unread,
Apr 23, 2013, 2:31:26 AM4/23/13
to maya...@googlegroups.com
Hi all, 

I had a quick look at the V-Ray Docs, but can't get any of the examples there to work for me. 

Basically, at render time, I want to be able to replace every material in the scene with a blank .5 .5 .5 shader in order for light tests via the Post Translate Python Script in Render Settings. 

Anyone have an idea how to proceed? 

Keith Rogers

unread,
Apr 23, 2013, 4:19:55 AM4/23/13
to maya...@googlegroups.com
Stupid question but is not doing a layer with an overide an option?  What's the difference.



--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kiernan

unread,
Apr 23, 2013, 5:38:03 AM4/23/13
to maya...@googlegroups.com
No, not a stupid question at all, I considered it. But I don't feel confident enough to use material overrides on a production scene....for this kind of purpose anyway ( burnt in the past with shader loss)

It's far safer doing post translate, as since nothing touches the scene at all, its impossible to get corrupted shading assignments. 

Luckily though, Vlado (as usual) was able to send me through something, if anyone else stumbles upon this thread in future;

from vray.utils import *
# create a grey BRDF
greyBrdf=create("BRDFDiffuse", "greyBrdf")
greyBrdf.set("color", Color(0.5, 0.5, 0.5))
sceneNodes=findByType("Node") # Get all Node plugins
for node in sceneNodes:
        node.set("material", greyBrdf)

Kiernan

--
You received this message because you are subscribed to a topic in the Google Groups "maya_he3d" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/maya_he3d/p-41SjXE_M8/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to maya_he3d+...@googlegroups.com.

Keith Rogers

unread,
Apr 23, 2013, 7:13:43 AM4/23/13
to maya...@googlegroups.com
Handy to know.  Maya shader drop off affects us all at some point in our lives.  Good old Vlado.  He must be on the forum 24/7! 
Reply all
Reply to author
Forward
0 new messages