Hi Cammunity.
In my model i am using a code to make an object run an animation.
if (buttonNum == 8)
{
Model.find("Door");
}
if (buttonNum == 9)
{
Model.find("Door");
}
What is the complete code lines for this.
Thankyou
Hi Cammunity.
In my model i am using a code to make an object run an animation.
if (buttonNum == 8)
{
Model.find("Door");
}
if (buttonNum == 9)
{
Model.find("Door");
}
What is the complete code lines for this.
Thankyou
In your screenshot you are mixing up two ways to access the animation.
You can either use the old commands (startanimation, stopanimation, ...) which you can look up in the command help within FlexSim directly (Help -> Command Helper).
Or you the newer "animations" class. Information about that is available in the class reference section of the online manual.
If you need to look up syntax in general, those two sources will help you in most cases.
I have tried in that way also, but it is still showing the error.
@Sri_vikas K, “find” method is of a flexscript class treenode. The class “animation” is a sub class of class Object. Felix showed a method of casting from one class to another class.
13 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved