V-Ray scripting in ruby?
-
As far as I know, there is no API for VfS.
But the data is stored as XML in the object's attribute. So you can modify it to change the light's properties. -
Thanks, Ted and Jiminy for the quick response.
Can I safely edit the file current_skp.xml (located at ASGVIS/VfS), that apparently stores the current global parameters?
Still can't find the light parameters. -
Send me a PM and Ill email over a short example from one of the Developers.
-
Thanks Ted.
-
no, that file gets overridden when you kick off a render. There are some helper functions we use to manipulate the xml that we store in the attribute dictionaries of the scene, but none of it is very obvious or easy to use for your own purposes. We are also going to be modifying the way a lot of our stuff works over the next couple versions, so if you were to tap in to our xml and play with it, it might not have a very long lifespan.
-
Thanks for the answer, Devin. Is there another V-Ray implementation where I can animate the illumination? Or I have to wait that this feature comes to SU? I also work with Blender. Thanks in advance.
-
we currently don't support animated parameters in any portion of V-Ray for SketchUp
-
I was able to do some short progress modifying the skp files from each light separately and reloading through the ruby script. The only thing that it is still missing is the possibility to render the scene from the script. It is possible to do this from the SU API or from the system? Thanks in advance.
-
Yes, you can call
VRayForSketchUp.launch_vray_render
VRayForSketchUp.launch_vray_rt_render
VRayForSketchUp.launch_vray_batch_render
-
Many Thanks Jiminy. !
-
How to call this to run Vray in ruby, please help, thanks alot
VRayForSketchUp.launch_vray_render
VRayForSketchUp.launch_vray_rt_render
VRayForSketchUp.launch_vray_batch_render -
@tuanminhtq said in V-Ray scripting in ruby?:
How to call this to run Vray in ruby, please help, thanks alot
VRayForSketchUp.launch_vray_render
VRayForSketchUp.launch_vray_rt_render
VRayForSketchUp.launch_vray_batch_renderHave you found a solution?
Advertisement