[Closed] Create dropdown based on objects in scene?
I’m currently trying to write a script that will help assign tags to objects in a scene. This data will be written out to a text file and picked up later.
Since I often have several similar objects in the scene (like 3 swapping heads), I want to be able to choose each one in turn from a drop down, and then assign data based on radio buttons. My problem is creating the drop downs.
I don’t get errors, but i don’t get what I expect – instead of my data being passed to the drop down, I get an empty list that fills the screen vertically.
I have this in my datatagger rollout:
on datatagger open do (
tc = getComponents()
)
That calls a functions that finds all the components in the scene I’ll need to tag. It creates an array for each type of object, so I end up with something resembling the following:
inArH=#(“Head_1”, “Head_2”)
inArB=#(“Body_1”,“Body_2”,“Body_3”)
You get the idea.
InArH is defined as local InArH=#() inside the datatagger, outside any function.
I try to create the list with this:
dropdownlist ddHead pos:[10,25] width:82 height:94 items:inarh
and thats where I get the massive empty list.
any thoughts?