Getting a structural feature value

Moderator: Moderators

Getting a structural feature value

Postby » Wed Sep 27, 2017 5:06 pm


I am relatively new to Cameo and scripting within it. In the documentation there is a section under ALH APIs that talks about getting a structural feature value. it even gives an example call, "value = ALH.getValue(object, "speed");" but it doesn't say how to get object. I couldn't find much about structural features in general either.

It seems a script has access to any Parameters of the Opaque Behavior but I am not sure what else can be accessed.

Forum Newbie
Forum Newbie
Posts: 8
Posts Rating:2
Joined: Wed Sep 27, 2017 4:24 pm

Re: Getting a structural feature value

Postby arnon_l » Mon Oct 02, 2017 11:22 pm


"object" could be accessed by the predefined script variable "$context$" or "self".
for example, ALH.getValue($context$, "speed") or ALH.getValue(self, "speed")

Kind regards,
Customer Support
Customer Support
Posts: 79
Posts Rating:9
Joined: Thu Aug 30, 2012 3:39 am

Return to Cameo Simulation Toolkits

Who is online

Users browsing this forum: No registered users and 5 guests