Jump to content

Viewport capture through command line


nunoalex

Recommended Posts

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 by nunoalex
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...