[Closed] custattributes+listbox
i have put a custattribute definition in my character set up say for example on the hand controller where theres pick button and list box it works fine except that the listbox items and pickbutton caption disapear if just deselected and reselected the object again , how can i fix this?
The way i get around this is i add an integer parameter to the CA, and set its value when i pick the selected item from the listbox. When i re-open the rollout (on open rollName) I re-set its selected value using the integer.
You can do this with nodes, floats etc…
Rollouts inside custom attributes exist only for the time when they are displayed. When you selected the object, the rollout is initialized, and when you deselect the object, the rollout is destroyed. As eek mentioned, anything you want to keep, you should save in a parameter of the CA.