Is there a way to use RhinoScript to set the renderer’s image output size?
That is, I want to programmatically set the Width and Height in the Output tab of the Render Options dialog.
- Rich Wells
Is there a way to use RhinoScript to set the renderer’s image output size?
That is, I want to programmatically set the Width and Height in the Output tab of the Render Options dialog.
- Rich Wells
Re: setting output width and height in RhinoScript
It’s very simple.
1) don’t use the override in Vray Option
2) create a new button with a script that change the Rhino Render size properties.
If you don’t know how to do the num.2 let’s look on the on-line help (function key F1) and seqrch for toolbar customization.
You can do this by yourself for sure!
-R-
Re: setting output width and height in RhinoScript
But my question is, how do I do this from a script? What command or RhinoScript function would I use?
- Rich
Re: setting output width and height in RhinoScript
Let me clarify a little further.
Using the Rhino Renderer, I can use
“-DocumentProperties Render Resolution Type Custom Height 1000 Width 1000”
in a script to set the render output size to 1000x1000. I need the equivalent command for VRay.
I tried “-visOptions”, but even with the initial “-” it brings up the dialog. It doesn’t appear to support a pure command line interface like DocumentProperties does.
- Rich
Re: setting output width and height in RhinoScript
At the moment you can NOT access to any Vray option trough a script.
So, I’m sorry, the only way it’s to use the Rhinorender resolution as described in my prev post.
If you want to use a script you can do the same by the scripted version of Rhinorender.
-R-
Re: setting output width and height in RhinoScript
Unfortunately, I need to use V-Ray, not the built-in Rhino rendering module. I guess I’ll have to keep using a different file for each resolution I want to render.
- Rich
Re: setting output width and height in RhinoScript
Sorry Richard,
probably I’m not able to explain me.
The way you use for Rhinorender to set-up rendering dimension
work ALSO for VrayforRhino.
You can handle Resolution from the Vray Option or from Rhino Option also if you have VrayforRhino
Try IT!
Re: setting output width and height in RhinoScript
Are you saying that setting the rendering resolution via _-DocumentProperties should affect the V-Ray resolution? I tried that, and I don’t get that behavior.
- Rich