DASD Posted February 10, 2014 Share Posted February 10, 2014 (edited) For purposes of organisation, rigging and usability I want to import geometry from the connected input of an object node (that is form the parent object level node).For this purpose I use an object_merge node and I want to script the path in "Object n". In the python shell hou.node('..').inputs()[0].path() + "/" gives me the path I need. But it does not work when I put it in the "Object n" slot and set the node scripting language to python. I tried to put the code in backticks, but that hasn't worked either. I am thankful for all advice.^^ Edited February 16, 2014 by DASD Quote Link to comment Share on other sites More sharing options...
edward Posted February 10, 2014 Share Posted February 10, 2014 - First click on the parameter and make sure it's background is reversed. This puts it into expression mode - Now when you right-click on it, you can choose: Expressions > Edit expression - Type in your expression and hit apply - You should get an error, because it's not set in python yet. - To change it to python, right click on the name and choose Expressions > Change language to Python - Hit apply again to see that you get no more errors, then hit Accept Quote Link to comment Share on other sites More sharing options...
DASD Posted February 10, 2014 Author Share Posted February 10, 2014 Worked like a charm! I missed the part about putting it in expression mode.^^ Thank you very much! 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.