nunoalex Posted May 14, 2018 Share Posted May 14, 2018 (edited) Hi, I'm a bit of a newb learning houdini (ex-XSI vet) and I'm trying to create a script to do a viewport capture on a few machines to speed up the process but unfortunately I hit a roadblock when I try to run the process through hython >>> desktop = hou.ui.curDesktop() Traceback (most recent call last): File "<console>", line 1, in <module> AttributeError: 'module' object has no attribute 'ui' Basically I can't get the attribute "ui" needed to launch the viewport capture when running a hython session, but it works fine on a interactive session though. Any ideias to overcome this obstacle? Is it a limitation on the hython session? Any tricks ? Or alternatively is it possible to call an interactive session to do the viewport capture passing some arguments (needed for the script to split up the viewport capture on more than 1 machine)?? Cheers Nuno Edited May 14, 2018 by nunoalex Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted May 16, 2018 Share Posted May 16, 2018 Hi, Yes, the ui module contains UI related stuff and is not available in Hython. You have few other options: 1. Use OpenGL ROP (probably the best option) http://www.sidefx.com/docs/houdini/nodes/out/opengl.html 2. Call Hscript http://www.sidefx.com/docs/houdini/commands/viewwrite.html Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.