assign a global variable with python

   1614   2   0
User Avatar
Member
31 posts
Joined: April 2015
Offline
Hi

i want to assign a global variable as path for a rop node with python - but the problem is that python translates the string $F to the current frame, and every other parameter… but i want to assign $F without translation

node_rop.parm('sopoutput').set(“$JOB/render/$HIPNAME.$F.bgeo.sc”) gets translatet to /Users/xxxx/Project/render/path.12.bgeo.sc in the rop network

so how can i assign a $F to a textinput field with python

thank you for help!

seet attachment

Attachments:
pythonRop.hiplc (64.4 KB)

User Avatar
Member
8592 posts
Joined: July 2007
Offline
just escape the $ character
node_rop.parm('sopoutput').set("\$JOB/render/$HIPNAME.\$F.bgeo.sc")
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
31 posts
Joined: April 2015
Offline
tamte
just escape the $ character
node_rop.parm('sopoutput').set("\$JOB/render/$HIPNAME.\$F.bgeo.sc")

Thank you very much!
  • Quick Links