On 06/10/2015 at 10:57, xxxxxxxx wrote:
i try to figure out where vray storage information like pass order or other things. any ideas how to gain access to it?
this code list all vray related plugins and try to print all stored informations:
import c4d
from c4d import documents
from c4d import plugins
def main() :
doc = c4d.documents.GetActiveDocument()
print "#" *64
for i in range (0,2000000) :
plug = c4d.plugins.FindPlugin(i)
if plug != None:
if "V-Ray" in plug.GetName() or "Vray" in plug.GetName() :
w = c4d.plugins.ReadRegInfo(i,3500)
x = c4d.plugins.GetWorldPluginData(i)
y = c4d.plugins.GetToolData(doc,i)
z = c4d.plugins.ReadPluginInfo(i,3500)
print i,plug.GetName()
print i,w
print i,x
print i,y
print i,z
print "#" * 16
if __name__=='__main__':
main()