If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Exciting News: Chaos acquires EvolveLAB = AI-Powered Design.
To learn more, please visit this page!
New! You can now log in to the forums with your chaos.com account as well as your forum account.
Is there a help or reference file for writing scripting for V-Ray? A syntax or something with common commands. Also would it differ from software packages such as 3ds Max, Maya, Rhino 3D?
Maxscript itself is fairly loose, you can get away with quite sloppy code which is quick and accessible. Other programs use more strict languages which are similar to javascript so a bit more snotty about their syntax but still readable.
Maxscript 101 - http://vimeo.com/album/1514565 is a course written by the creator of maxscript and a decent resource, there's also a lot of intro lessons in the maxscript online help with 3dsmax which will get you started.
For vray stuff it's normal material and light parameters which normally go along the object.property = x or material.property = x lines, so for a vray light named vraylight01 it'd be vraylight01.multiplier = 30 or vraylight01.width = 10 and so on. For any physical vray object, if you select it and type "showproperties $" in the maxscript listener it'll give you a list of all the accisble parameters of that object. For the renderer, assign vray to be your production renderer and in the listener type "vr = renderers.current" to set a variable called vr to be whatever is our current renderer, then type "showproperties vr" to pull the same trick and get a list of all the accessible properties.
thanks for the help, that's great. Any idea if the scripting would differ in other software packages? For example what I find in the maxscript listener, could I use this same V-ray properties in Rhino 3D?
Cool thanks, I am looking for Rhino commands specifically but I thought I would start here. I was hoping V-Ray commands would be the same across all software, its just the in between bits that would be different.
There's some stuff up for maxscript on spot3d, unfortunately I've no idea for rhino. Normally most apps would have some kind of basic rudown of how their language works, with all of the commands generally worknig the same way, so once you know one, you know most of them, type of thing.
Thanks I have seen the maxscript stuff on spot3d. I have also asked over in the Rhino section top see if any one knows. I am getting a few errors and I am not sure if its my Rhino scripting or the parameter commands being slightly incorrect.
Comment