Vray documentation for python scripting?


#1

Hi guys, at the moment I’m dealing with some work requiring rendering in Vray, and I’m doing some scripting(python) to automate certain render tasks dealing with Vray. I’m wondering if there is a proper technical documentation of it lying somewhere (akin to the maya technical documentation for python/pymel commands)

I know there is a github page where some of the commands are written down, but not everything. If there’s a fuller set, and if anyone knows where it is and let me know, I would be very appreciative.

Thank you for your time!

Regards,
XJ


#2

for the most part you will be just creating the various vray nodes, and editing there attributes, so no special commands are needed. Mostly just getAttr and setAttr


#3

It kind of depends on what you’re looking for. I assume you meant this mayaVrayCommandDocs Github repository. I’m the creator of that repository, but it’s a very old one. :wink:

With Chaosgroups’ V-Ray for Maya documentation for 3.0+ they actually improved it a lot and some pages come with scripting examples (mostly in mel, but they translate very well to python).

What are you looking to do?


#4

BigRoyNL, thanks for making that repository! It may be old, but it helped a lot by laying things out in a convenient way to get to.

I looked through the documentation and they did provide a lot more help, so thank you again.

What I was actually doing was setting up render templates/turntable templates for my team, and I found it really painful to access the vray render commands, things like resolution settings or image format outputs, or even just getting it to render in batch mode. For various reasons I was unable to use a batch render manager to do the file management part so I had to do it locally.

The script editor helped a lot, as did your repository. I think my primary issue was I don’t know what parameters the various commands want and whether they even do anything. And probably, it’s just me, but I find just changing the Vray settings like resolution or file format and such often does nothing. I have to change the maya defaultRenderGlobals settings alongside as well. I struggled for quite a bit trying to get vray to render images into the directory I wanted. In the end I just used python’s os and shutil functions to move the files around lol.

Thank you again for the repository BigRoyNL!