ben Posted March 17, 2011 Share Posted March 17, 2011 Hi, I'm still fighting with menues and once again I'm stuck... here is the problem : For a python built menu items = ["Square","Square", "Round","Round", "Plane","Plane", "Corner","Corner"] return items I try to get the result in another node : `chs("../Menu_Script/menu")` but it returns an int(index of the menu) not a string. If I built exactly the same menu using Menu_Items, It works as expected and I get a string. I'm probably missing something very obvious... any idea ? thx MenuItemsVSMenuScript.hipnc Quote Link to comment Share on other sites More sharing options...
graham Posted March 17, 2011 Share Posted March 17, 2011 Unfortunately it is not possible to evaluate script built menus as strings due to something deep down in Houdini that is not easily changed. I tried to have this "fixed" a long time ago but it wasn't something that could happen. The only way to get the token is to use the value and then index into the menu items list at that index. Quote Link to comment Share on other sites More sharing options...
graham Posted March 17, 2011 Share Posted March 17, 2011 Oops, forgot to attach an example. MenuItemsVSMenuScript.hipnc Quote Link to comment Share on other sites More sharing options...
ben Posted March 17, 2011 Author Share Posted March 17, 2011 Thx a lot ! 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.