seth_ro18 Posted June 4, 2010 Share Posted June 4, 2010 I would like to access the $OBJNAME local variable in a DOP node expression, but I'm using Python. It looks like hou.lvar() only works in SOPs and POPs. How do I access local variables in DOPs with Python? Thanks! Quote Link to comment Share on other sites More sharing options...
graham Posted June 4, 2010 Share Posted June 4, 2010 You should be able to use use hou.hscriptExpression() or hou.expandString() to get the value Quote Link to comment Share on other sites More sharing options...
seth_ro18 Posted June 5, 2010 Author Share Posted June 5, 2010 Worked like a charm. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.