eyevex Posted May 9, 2016 Share Posted May 9, 2016 In short... HDA parameter UI... I have ordered list A. and Ordered list B The item of B are generated dynamically with knowledge of List A. This basically could mean pull model where List B generation queries the value of List A. But do this as a multiparm instance and it seems to get more complicated.... List A may have different values per instance... meaning different items on List B per instance. But how to know which List A instance to query? I'd prefer not to pull and set the parmTemplates as this could force a cook to run... could be ie a menu type of string as well... and trying to avoid something toooo hacky.. but looking for ideas... Is there any way to have kwargs-like information so the instance # is known to the menu generation similar to callbacks on parms? Is there a way to force the menu generation or set the items from outside the menu generation script, such that List A callback() could populate List B since kwargs will provide the instance of List A which will be the same instance # as List B? Thanks ahead for any ideas (|;-D> Quote Link to comment Share on other sites More sharing options...
anim Posted May 9, 2016 Share Posted May 9, 2016 in ListB menu script, get it's index from kwargs['parm'].name() and evaluate ListA with the same index ts_multiparm_menus_example.hip Quote Link to comment Share on other sites More sharing options...
eyevex Posted May 9, 2016 Author Share Posted May 9, 2016 Interesting I thought kwargs was not available in menu generation... It seems I could be wrong on this, let me check it out thanks. Quote Link to comment Share on other sites More sharing options...
eyevex Posted May 9, 2016 Author Share Posted May 9, 2016 You are correct, Not sure how I missed that, thanks for the 2nd look Anim. 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.