PDA

View Full Version : Inspectable enumeration values not working


sallyslapcabbag
04-25-2005, 08:49 AM
I have created a component whose 'live preview' updates correctly when it's inspectable enumeration values are changed in the parameters tab of the properties panel but does not take those values into use when the movie is actually played.

[Inspectable( enumeration="Default,2.8,3.1", defaultValue="Default" )]

If I change the inspectable parameter to a basic String and enter the string manually instead of as a selection from an enumeration list it works perfectly.
[Inspectable( type="String", defaultValue="Default" )]

Any suggestions on what might be causing this would be greatly appreciated.

sallyslapcabbag
04-25-2005, 10:44 AM
It seems that in the case of 'Live Preview' if one of the enumeration values is of type String (e.g contains characters) then all of the other elements in the enumeration are forced to type String (e.g. 2.8 = "2.8") however in the case of movie playback the elements are taken individually (e.g. 2.8 is taken as a numerical value).

Adding "type="String"" before "enumeration":
[Inspectable( type="String, enumeration="Default,2.8,3.1", defaultValue="Default" )]
did not help so I added a character "v" to force them to be taken as a String "v2.8"

[Inspectable( enumeration="Default,v2.8,v3.1", defaultValue="Default" )]