Hi! I want to set the rail length and also the beam height of an ASRSvehicle using Flexscipt. Is there a way to do that? Thanks.
The rails and beam are components of the ASRSvehicle and can be accessed as objects through "object.attrs.drawsurrogate.subnodes". The names/ranks needed to access the correct component can be seen in the animation editor.
Once you have a reference to the object you can set the size (and other properties) like you would with any other object (object.size.x/y/z).
As an example, the code in the script window in the attached model, randomizes both the rail lengths and the beam height. Note, that the ladder is part of the "Car" component, which you might want to adjust together with the beam size.
// Randomize the length of rails double rand = uniform(10, 40); Object lowerRail = ASRS.attrs.drawsurrogate.subnodes["BottomRail"]; Object upperRail = ASRS.attrs.drawsurrogate.subnodes["TopRail"]; lowerRail.size.x = rand; upperRail.size.x = rand;
18 People are following this question.