How to identify the data type of a label using Flexscript?

How to identify the data type of a label using Flexscript?

nmzenke
Enthusiast Enthusiast
206 Views
4 Replies
Message 1 of 5

How to identify the data type of a label using Flexscript?

nmzenke
Enthusiast
Enthusiast

Is there a command that will allow me to check the data type (e.g. string, number, array, pointer, etc) of a label that's on a token and/or a 3D object?

0 Likes
Accepted solutions (1)
207 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor
0 Likes
Message 3 of 5

moehlmann_fe
Advocate
Advocate
Accepted solution
object.labels["labelName"].dataType

To know what the numbers returned by this expression mean, you can check the different different DATATYPE_ defines in a script console window. (Simple is generally Array or Map, Coupling is pointer)

moehlmann_fe_0-1747724009797.png

 

0 Likes
Message 4 of 5

nmzenke
Enthusiast
Enthusiast

 

0 Likes
Message 5 of 5

nmzenke
Enthusiast
Enthusiast

Thanks so much. I was trying token.labelName.dataType and getting an error but explicitly putting in the labels["labelName"] worked great. Thanks again

0 Likes