willlinks Posted December 7, 2011 Share Posted December 7, 2011 Hi everyone, I got a problem with making one parameter for my digital asset. I'd like to add one parameter that specifying local valuable from the input to use in the digital assets. for example, when I type $BBX or $PT on the parameter, it will be passed to inside (lower level) and use that local val to do some process. I tried but it always shows 0 instead of using the local val I gave... I attached test hip file. If someone has any solution, I'm more than happy to hear that. Thanks! Hiro specify_localVal_from_outsideParm.hip Quote Link to comment Share on other sites More sharing options...
Macha Posted December 7, 2011 Share Posted December 7, 2011 (edited) Hey Hiro! This works for me: Make your parameter a string. Type uppercase but without $. Then set the attributecreate parameter to Python and type: hou.lvar(ch("../referenceVal")) Edited December 7, 2011 by Macha Quote Link to comment Share on other sites More sharing options...
willlinks Posted December 7, 2011 Author Share Posted December 7, 2011 Hey Marc, thanks for your reply. I tried that but it gives me error. for some reason, lvar( ) is not working enen when I change the node to Python... If you don't mind, would you upload your file? specify_localVal_from_outsideParm.002.hip Quote Link to comment Share on other sites More sharing options...
Macha Posted December 8, 2011 Share Posted December 8, 2011 Did you try changing the language by right-clicking on the channel and changing it there? That got me at first. Quote Link to comment Share on other sites More sharing options...
willlinks Posted December 8, 2011 Author Share Posted December 8, 2011 Yes, you are right. I didn't do the right-clicking one. It works fine now! Thanks a lot, Marc. 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.