Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    Starting Rotation Element from its position

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Picture of cooladn
Posted
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
 
Posts: 7 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of cooladn
Posted Hide Post
Thanks,
i've just sent you the mxt file
 
Posts: 7 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
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
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of cooladn
Posted Hide Post
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
 
Posts: 7 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Hi !!

Sent a mail. Chk it out.


Cheers,

Anup
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of cooladn
Posted Hide Post
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.
 
Posts: 7 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    Starting Rotation Element from its position