Search - User list
Full Version: Display, Image Resolution: Viewport Size, set it with Python
Root » Solaris and Karma » Display, Image Resolution: Viewport Size, set it with Python
ikoon
Please, as in the attached picture ... Display, Image Resolution: Viewport Size. Is there a way to set it with Python, or HScript?

I haven't found it here or anywhere else:
https://www.sidefx.com/docs/houdini/hom/hou/SceneViewer.html [www.sidefx.com]
ikoon
I got this answer from the Support

Support
I am told there is no HOM command but the hscript command is:

`sceneviewopts -R <fixed_res_x> <fixed_res_y> -S <res_scale> -V on|off -F on|off <viewport_path>`

-V is "use viewport size"
-F is "use fixed size"

FWIW, none of the render options on the Render tab are saved in the display options. Those options almost belong in another dialog altogether (as they aren't display options), but it seemed easier to keep them all in one spot.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB