Jump to content

asset question


mic

Recommended Posts

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 by mic
Link to comment
Share on other sites

and one more very strange problem....

doc

Menu script field

Enter 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?..

Link to comment
Share on other sites

(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 by mic
Link to comment
Share on other sites

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?..

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...