carlos_ramiro
06-26-2006, 08:09 AM
Hi
I'm quite new with maxscript, so here is my problem.
I want to use dropdownlist, so when i select first item on the dropdownlist, 2 objects in my scene are linked and selecting the second item on the dropdownlist, these 2 objects are unlinked.
I have 2 problems;
First, going back to dropdownlist always shows first item selected, never stays on second item.
Second, i don't know what is the argument i have to use on the event "on <dropdownlist> selected <arg> do <expr>"
This is what i have for now
ca=attributes parentto
(
rollout parentroll "Parent to"
(
dropdownlist parentdrop "Parent to:" items:#("World", "Body")
on parentdrop selected i do
$.parent = $Sphere01
)
)
custattributes.add $.modifiers[1] ca
thanks
I'm quite new with maxscript, so here is my problem.
I want to use dropdownlist, so when i select first item on the dropdownlist, 2 objects in my scene are linked and selecting the second item on the dropdownlist, these 2 objects are unlinked.
I have 2 problems;
First, going back to dropdownlist always shows first item selected, never stays on second item.
Second, i don't know what is the argument i have to use on the event "on <dropdownlist> selected <arg> do <expr>"
This is what i have for now
ca=attributes parentto
(
rollout parentroll "Parent to"
(
dropdownlist parentdrop "Parent to:" items:#("World", "Body")
on parentdrop selected i do
$.parent = $Sphere01
)
)
custattributes.add $.modifiers[1] ca
thanks
