python:node=kwargs['node'] in Hscript?

   4379   3   0
User Avatar
Member
12 posts
Joined: 8月 2012
Offline
Hi,guys,
I am creating a digital asset now,and i need to write a script to do things like:
node=kwargs
node.setParmExpressions(“tx”:'point(“somenode”,0,“P”,0)')
But i need to do it in Hscript,not python.
I know how to set parameter in Hscript:
opparm digitalAssetitself tx ‘point(“somenode”,0,“P”,0)’
but how should i get the digital asset itself in Hscript?
Thank you guys.
Peng.
User Avatar
Member
5 posts
Joined: 7月 2015
Offline
Could you do it in python, but call the hscript requisite parts with hou.hscript() instead?
Ben Andersen
User Avatar
Member
8786 posts
Joined: 7月 2007
Offline
for hscript arguments should be in variables
$arg1, $arg2, …
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
12 posts
Joined: 8月 2012
Offline
tamte
for hscript arguments should be in variables
$arg1, $arg2, …
wow,it works now.
Thanks a lot.
  • Quick Links