mic Posted December 11, 2008 Share Posted December 11, 2008 (edited) hello! i am creating some asset in object-level (cameras, geo, etc). there is some ordered menu and i want to toggle display of some objects (inside the asset of course) changing items of this menu. How can i do it? for example, before asset i created null object, oredered menu in it, and wrote few strokes, smth like: if (`ch("obj/null1/mode")` == 0) then opset -d off obj/my_node; etc. and add it to callback script in this oredered menu created in the null object. Hscript uses the full paths. And if i want to do the same in asset my paths must be relative.. So i don't know right now how to solve this.. Edited December 11, 2008 by mic Quote Link to comment Share on other sites More sharing options...
mic Posted December 11, 2008 Author Share Posted December 11, 2008 and one more very strange problem.... doc Menu script fieldEnter a script here whose output is a space-separated list in the form: token "label" token "label" ... For example: all "All objects" sops "Surfaces" dops "Dynamics objects" ordered menu is done, but this menu script doesn't work! what can it be?.. Quote Link to comment Share on other sites More sharing options...
mic Posted December 11, 2008 Author Share Posted December 11, 2008 (edited) (the first problem probably solved : callback script smth like opset -d toggle `oppwf()`/geo1 `oppwf()`/geo2 about stupid problem 2 - can anyone post an example - only one node with simple ordered menu created parameter - and menu script all "All objects" sops "Surfaces" dops "Dynamics objects" ? is this only my bug, or i've done somewhere very stupid mistake.. Edited December 11, 2008 by mic Quote Link to comment Share on other sites More sharing options...
mic Posted December 11, 2008 Author Share Posted December 11, 2008 and this problem also solved.) i forgot 'echo' before) thank to all, maybe this funny questions and answers will help someone) Quote Link to comment Share on other sites More sharing options...
mic Posted December 11, 2008 Author Share Posted December 11, 2008 and this problem also solved.) i forgot 'echo' before) thank to all, maybe this funny questions and answers will help someone) the battle continues) i didn't notice last time - for example, create ordered menu 'qqq' and menu script: set res = " lalala \"tratata\"" echo $res and in textport / -> opparm -d /obj/geo1/sphere1 qqq opparm /obj/geo1/sphere1 qqq ( 0 ) why so? how to set 'lalala' or anything except index of token?.. Quote Link to comment Share on other sites More sharing options...
mic Posted December 12, 2008 Author Share Posted December 12, 2008 (edited) http://forums.odforce.net/index.php?showto...;hl=menu+script the problem solved - use string, not ordered menu =)) Edited December 12, 2008 by mic 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.