Jump to content

ropchop or scripted export of clips


glassman3d

Recommended Posts

Hi All

 

I'm creating an animation publishing system and I am looking for a way to export out .bclip information for two cases:

 

1) all channels in a given chop node

2) all channels in a parm or parm tuple

 

There is a right click menu for both but I've been searching the hou module for both hou.ChopNode and hou.Parm for similar functions with no success. The File chop is only able to read clips

 

Any ideas anyone? Is there some hscript function somewhere?

 

many thanks

Edited by glassman3d
Link to comment
Share on other sites

I should add the syntax is a bit crazy,

here's a working python example to export animation on a camera called cam1

hou.hscript( """ chwrite -f 101 300 {0}t? {0}r? {0}focal /tmp/cliptest.bchan """.format( "/obj/cam1/") )

I've used python to utilise handy string formatting

 

the hscript equivalent is:

chwrite -f 101 300 /obj/cam1/t? /obj/cam1/r? /obj/cam1/focal /tmp/cliptest.bchan
Edited by glassman3d
  • Like 1
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...