magneto Posted January 22, 2012 Share Posted January 22, 2012 I have a VEX operator where I want to have bidirectional relationship between 2 parameters, kind of like volume and density where adjusting one should change the other. I tried assigning to the main VEX function parameters but the compiler fails in that case. Is there any way to do this? Thanks Quote Link to comment Share on other sites More sharing options...
symek Posted January 22, 2012 Share Posted January 22, 2012 You'll can set it up outside VEX by callback functions in parms. See example. callback_parm.hipnc 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted January 23, 2012 Author Share Posted January 23, 2012 Thanks Symek. That's awesome. I quickly looked at the callbacks in the help but I am still not sure how you did it. Basically I don't know where your addition is to make another value appear on the Mountain SOP Can you please tell me where I can access it inside the scene? From there I could untangle it. Quote Link to comment Share on other sites More sharing options...
Macha Posted January 23, 2012 Share Posted January 23, 2012 (edited) You can see it in the edit parameter. hou.pwd().parm("height").set(hou.pwd().parm("my_height").eval()) so, on using it it runs this line which grabs the value from my_height Edited January 23, 2012 by Macha 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted January 23, 2012 Author Share Posted January 23, 2012 Thanks Macha, now I see it. Awesome Quote Link to comment Share on other sites More sharing options...
symek Posted January 23, 2012 Share Posted January 23, 2012 oh, sorry for being vague! Quote Link to comment Share on other sites More sharing options...
magneto Posted January 23, 2012 Author Share Posted January 23, 2012 No worries man, your scene is very useful 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.