Viewpoint Forums
Viewpoint Forums
Viewpoint XML Schema
I need to dalay a ActionAnimator|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
EnIgMaTiCScOrPioN Member |
Hi Prashant !!
Any action in the action animator which is on the 'Zero th' second will not work since it is on the zero time. Your action animator should be on the same TIME FRAME as that of your animation. What I would suggest is, you should define a null action called <Noop/> and write the code as follows. See the code below:
<MTSAction Name="Noop" />
<MTSTimeElem Name="Openfdr" Type="Keyframe" On="0">
<Target Name="00_MESH_126" Property="rot_" Timeline="T1"/>
<Time> 0 1 2 3 4 5 6 7 8 9 </Time>
<Timeline Name="T1" Type="R3D"> - - - - - - - - * [0.000002 -0.000002 -49.999992] </Timeline>
<MTSTimeElem Name="Play_Sound" Type="ActionAnimator" >
<Noop/> <Noop/> <Noop/> <Noop/> <Noop/> <Noop/> <Noop/> <Noop/>
<MTSJavaScript Func="PlayS()"/>
<Noop/>
</MTSTimeElem>
</MTSTimeElem>
You can see that the animation starts at 8 th second with an * (asterik) and ends at 9th second with a value. Also in the Action Animator, we have put the null actions till 7th second and on the 8th second is the Sound Function. Hence the sound function as well as the animation trigger on the same time frame (8th second). Its a good practice to put null actions instead of hyphens or dashes in Action Animators. Hope this helps. Best Regards, Anup |
|||
|
|
Member |
Dont forget that you cant use MTSJavaScript with the Developper license
|
|||
|
| <PatrolKiwi>
|
Hi,
You might also consider other strategies. If this animation is not tied into a bunch of others, or if there are not other Timelines involved that you may have deleted from the example, I would recommend you consider posting a message with a delay. That message can then be picked up by an interactor and trigger the two actions at the same time. eg. <MTSAction Name="goforit" /> <MTSAssignProperty Target="MTSInstance.00_MESH_126::rot_" Value="0.000002 -0.000002 -49.999992" /> <MTSJavaScript Func="PlayS()"/> </MTSAction> <MTSInteractor Name="grabmessage" > <MTSHandle Event="playnow" Action="goforit" /> </MTSInteractor> <MTSInteractor Name="myInteractor" > <Target Name="someMESH" /> <MTSHandle Event="MouseLeftClick" Action="PostMessage" Message="playnow" Delay="9" /> </MTSInteractor> |
||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Viewpoint XML Schema
I need to dalay a ActionAnimator
