Viewpoint Forums
Viewpoint Forums
Viewpoint XML Schema
Starting Rotation Element from its position|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi!
I want to rotate my MTSInstance named Dummy_AigSecondes on Y axe, so i write this code <MTSTimeElem Type="Keyframe" Name="Tourne_Seconde" On="1" Clamp="0"> <Target Name="MTSInstance.Dummy_AigSecondes" Property="rot_" Timeline="secondes_Rot_0"/> <Time> 0 60 </Time> <Timeline Name="secondes_Rot_0" Type="3D"> * +[0 -360 0] </Timeline> </MTSTimeElem> The initial position of Dummy_AigSecondes is [0 90 0]. However, the MTSTimeElem put [0 0 0] and next start the event Where is the problem ? Sorry for my poor english |
||
|
|
EnIgMaTiCScOrPioN Member |
Hi Bud !!
I would like to see the whole MTX file code before commenting on this. Can you mail it to anu_mmx@hotmail.com Cheers, Anup |
|||
|
|
Member |
Thanks,
i've just sent you the mxt file |
|||
|
|
EnIgMaTiCScOrPioN Member |
Hi Bud !!
Had a look at the MTX file. Following is your instance code. <MTSInstance Name="Dummy_AigSecondes" > <Transform> <Scale x="2.2868" y="2.2868" z="2.2868" /> <Rotate x="0" y="0" z="0" /> <Position x="1.3363" y="22.6844" z="0.6939" /> </Transform> You can see the rotate tag. It shows that the initial rotation value of the instance is not [0 90 0]. Its [0 0 0]. Hope this helps. Cheers, Anup |
|||
|
|
Member |
Hi!
i do the rotation with javascript function on initialize file. i do this action: var tourne_secondes = '0 -90 0'; vmp.SetProperty('MTSInstance.Dummy_AigSecondes', 'rot_', tourne_secondes, 'mts_pnt3d'); Even if i use or not the Rotation tag you found, the problem is the same, the rotation start at 0 |
|||
|
|
EnIgMaTiCScOrPioN Member |
Hi !!
Sent a mail. Chk it out. Cheers, Anup |
|||
|
|
Member |
Thanks for your help.
Using vmp.TriggerAnim('') was the solution to start at the selected position (0 -90 0), until of starting it on mtx file Thanks again. |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Viewpoint XML Schema
Starting Rotation Element from its position
