magneto Posted March 3, 2015 Share Posted March 3, 2015 Hi, I am trying to create some presets for my ramp similar to Volume Visualization SOP: I can built a menu but I don't know how I can define what happens when it's clicked. I checked AttribWrangle since it does a similar thing with its snippet menu button but it uses vexpressionmenu, which is not found or documented anywhere. Thanks Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted March 3, 2015 Share Posted March 3, 2015 (edited) Use menu script to create those options. You set it in similar fashion like when you filling group menu. Just when some option is picked execute callback to Python module to set proper values on ramp. I'm not sure can you do this on normal node. I think you need Digital Asset. Edited March 3, 2015 by mantragora 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted March 3, 2015 Author Share Posted March 3, 2015 Thanks mantragora. So you just use the callback script field of the menu parameter? That makes sense. For presets, like you said it seems like the callback script is limited to a single line? It would be nice if we could treat that field like any other parameter where we could write multi line scripts. Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted March 3, 2015 Share Posted March 3, 2015 I got example in the works for you. Just give me couple more minutes because I'm making something special just for you... 1 Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted March 3, 2015 Share Posted March 3, 2015 Here it is. TO_ADMINS: Why we cannot attach *.otlnc, *.hdanc ? for_magneto.zip 2 Quote Link to comment Share on other sites More sharing options...
magneto Posted March 3, 2015 Author Share Posted March 3, 2015 Thanks mantragora, exactly what I needed Quote Link to comment Share on other sites More sharing options...
violalyu Posted May 10, 2018 Share Posted May 10, 2018 On 2015/3/3 at 2:14 PM, Guest mantragora said: Here it is. TO_ADMINS: Why we cannot attach *.otlnc, *.hdanc ? for_magneto.zip Thank you so much! Somehow I cannot hit thank you on your entry...lol 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.