Compile vopsop using python

   2619   1   1
User Avatar
Member
581 posts
Joined: July 2005
Offline
hi, I have asked this before in the mailing list , but no luck yet.
Well, I want to compile a vopsop and save it in an otl, like when you use the Compile VEX Code To SOP Type option from the node popup menu, but using just python.
Basically a script that gets the selected vopsop, compile and saves it in an otl.
Similar to what you get using hou.Node.createDigitalAsset() to create a digital asset, but for VEX nodes.
Is there any way?
thx
Un saludo
Best Regards

Pablo Giménez
User Avatar
Member
581 posts
Joined: July 2005
Offline
I have tried to use hou.Node we have the createDigitalAsset() just to see if it would work but I got the next error:
Traceback (most recent call last):
File “<console>”, line 1, in <module>
File “/home/prisms/builder-new/Nightly10.0/dev/hfs/houdini/scripts/python/hou.py”, line 4812,
in createDigitalAsset
return _hou.Node_createDigitalAsset(*args, **kwargs)
OperationFailed: The attempted operation failed.
The specified node cannot be converted to a digital asset.


So seems I have to use something different to create an otl from a vopsop node.
Un saludo
Best Regards

Pablo Giménez
  • Quick Links