<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use TASKTYPE_STARTANIMATION in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595550#M90449</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: ;"&gt;Thank you for reply!&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P id="isPasted"&gt;Your answer is very clear. It helped me a lot.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 27 Jun 2024 08:22:25 GMT</pubDate>
    <dc:creator>ChoiHyunWoong</dc:creator>
    <dc:date>2024-06-27T08:22:25Z</dc:date>
    <item>
      <title>How to use TASKTYPE_STARTANIMATION</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595544#M90443</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;As always, thank you for your support!&lt;/P&gt;
 &lt;P&gt;I am trying to assign a task with a loading animation to a TaskExcuter through the TaskSequence.addTask() method.&lt;/P&gt;
 &lt;P&gt;Also, TaskExcuter has custom animation applied through Animation Creator.&lt;/P&gt;
 &lt;P&gt;I want to load the items after the TaskExcuter moves to the destination (10,0,0) and performs a custom animation.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P id="isPasted"&gt;TaskSequence ts = TaskSequence.create(Model.find("TaskExcuter1"), 0, 0);&lt;/P&gt;
 &lt;P&gt;ts.addTask(TASKTYPE_TRAVELTOLOC, NULL, NULL, 10, 0 , 0);&lt;/P&gt;
 &lt;P&gt;ts.addTask(TASKTYPE_STARTANIMATION, NULL, NULL, 1);&lt;/P&gt;
 &lt;P&gt;ts.addTask(TASKTYPE_LOAD, item, station, 1);&lt;/P&gt;
 &lt;P&gt;ts.dispatch();&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;When you run the code above, the TaskExcuter moves to the destination (10,0,0), starts the custom animation, and loads the item even though the animation has not ended.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Additionally, please check the durationtype parameter and durationtvalue parameter, which are the arguments of TASKTYPE_STARTANIMATION.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 07:59:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595544#M90443</guid>
      <dc:creator>ChoiHyunWoong</dc:creator>
      <dc:date>2024-06-25T07:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TASKTYPE_STARTANIMATION</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595545#M90444</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The task only starts the animation. It is finished in an instant. If you want to wait until the animation has finished, add a delay task with time equal to the animation duration to the task sequence.&lt;/P&gt;&lt;P&gt;For more information about the speed and duration parameters see the documentation on the Animation class.&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.html#Method-start"&gt;https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.html#Method-start&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 09:17:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595545#M90444</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-25T09:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TASKTYPE_STARTANIMATION</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595546#M90445</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted" style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;Thank you for reply.&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;How do I change the code that was written?&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;Are durationType and speedType parameter the same? &lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Please write explicitly.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;---------------------------------------------------------------------&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;TaskSequence ts = TaskSequence.create(Model.find("TaskExcuter1"), 0, 0);&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;ts.addTask(TASKTYPE_TRAVELTOLOC, NULL, NULL, 10, 0 , 0);&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;ts.addTask(TASKTYPE_STARTANIMATION, NULL, NULL, 1);&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;ts.addTask(TASKTYPE_LOAD, item, station, 1);&lt;/P&gt;
 &lt;P style="margin: 0px 0px 10px; color: rgb(51, 51, 51); font-family: ;"&gt;ts.dispatch();&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 23:19:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595546#M90445</guid>
      <dc:creator>ChoiHyunWoong</dc:creator>
      <dc:date>2024-06-25T23:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TASKTYPE_STARTANIMATION</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595547#M90446</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/43041/choihyunwoong.html" nodeid="43041"&gt;@Choi Hyun Woong&lt;/A&gt;, sure, you shown in your presented code a higher level of knowledge and Felix described it good enough to do it on your own from there.&lt;/P&gt;&lt;PRE&gt;..
ts.addTask(TASKTYPE_STARTANIMATION, NULL, NULL, 1);
&lt;EM&gt;ts.addTask(TASKTYPE_DELAY, NULL, NULL, timevar, statevar);&lt;/EM&gt;
ts.addTask(TASKTYPE_LOAD, item, station, 1);
..&lt;/PRE&gt;&lt;P style="margin: 0px 0px 10px; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: ;"&gt;You need to assign to local variables timevar and statevar suitable values. timevar gets a value of animation properties, which is how long this animation takes.&lt;/P&gt;&lt;P style="margin: 0px 0px 10px; caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: ;"&gt;You can test value behaviors in small models on your own. This is what I do to get sufficient results. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jun 2024 06:09:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595547#M90446</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-06-26T06:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TASKTYPE_STARTANIMATION</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595548#M90447</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you for reply.&lt;/P&gt;
 &lt;P&gt;The code you suggested loads after the custom animation ends.&lt;/P&gt;
 &lt;P&gt;I am curious about the var2 and var3 parameters of TASKTYPE_STARTANIMATION.&lt;/P&gt;
 &lt;P&gt;Additionally, can't the TASKTYPE_STARTANIMATION method delay while an animation is being performed?&lt;/P&gt;
 &lt;P&gt;&lt;A rel="nofollow" id="isPasted" href="https://docs.flexsim.com/en/23.2/Reference/TaskSequences/TaskTypes/TaskTypes.html#startAnimation"&gt;https://docs.flexsim.com/en/23.2/Reference/TaskSequences/TaskTypes/TaskTypes.html#startAnimation&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jun 2024 23:57:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595548#M90447</guid>
      <dc:creator>ChoiHyunWoong</dc:creator>
      <dc:date>2024-06-26T23:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TASKTYPE_STARTANIMATION</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595549#M90448</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;var2 and var3 are the optional speedType and speedValue parameters respectively that allow you to customize the duration of the animation. If the documentation is unclear, please be more specific about what you want to know about the parameters.&lt;/P&gt;&lt;P&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.html#Method-start"&gt;https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Animation.html#Method-start&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And as I already noted in my original answer. No, the start animation task does not allow for a build-in delay.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jun 2024 07:36:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595549#M90448</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-27T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TASKTYPE_STARTANIMATION</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595550#M90449</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: ;"&gt;Thank you for reply!&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P id="isPasted"&gt;Your answer is very clear. It helped me a lot.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jun 2024 08:22:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-tasktype-startanimation/m-p/13595550#M90449</guid>
      <dc:creator>ChoiHyunWoong</dc:creator>
      <dc:date>2024-06-27T08:22:25Z</dc:date>
    </item>
  </channel>
</rss>

