Hello friends, I’m trying to get edge constraints to work in my rollout, however I am unable to figure out how to make the listbox work correctly.
The code I have so far looks like this:
group “Edge Constraint Options”(
combobox edgeConstraint “Constraints” items:#([0],[1],[2],[3], “None”, “Edge”,“Face”,“Normal”)
(
on edgeConstraint do(
$.constrainType = edgeConstraint.array
)
)
)
The logic I’m trying is very simple. I want $.constraintType = either 0,1,2,3. I figured using an array index would work, however it doesn’t appear to be this simple.
How do I fix this?
Many thanks
