getattr for live.objects?

johannotto's icon

How could I get the attributes of the live.objects (via javascript)?
f.ex. "Range/Enum" from live.dial

myobj.getattr("Range/Enum") doesn't seem to work.

thanks,
johann

Emmanuel Jourdan's icon

The parameter attribute are not exposed to the user, in order to avoid breaking MfL devices, or causing unexpected behavior in Live. As those attributes are statics, you can write them statically as argument of your js object for instance;