Search - User list
Full Version: python:node=kwargs['node'] in Hscript?
Root » Technical Discussion » python:node=kwargs['node'] in Hscript?
pengzhang
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.
littlegreenlantern
Could you do it in python, but call the hscript requisite parts with hou.hscript() instead?
tamte
for hscript arguments should be in variables
$arg1, $arg2, …
pengzhang
tamte
for hscript arguments should be in variables
$arg1, $arg2, …
wow,it works now.
Thanks a lot.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB