|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
I am sending this code in this code the thing i want to do that when in the html i click a form button the camera starts rotating complete 360 and go in a loop and continue its rotation until a button is pressed and it stops at the position where it is during its rotation i hope u got this line and when we press the rotate button it starts rotating again from the current position where it is stopped the code is as follow plz make the desired changes in it and plz send me the way i want i would be very thankful.Waiting for the answer
thanx Murad ................................................................................................
<MTSInstance Name="Simple_0" Visible="0">
<Transform>
<Scale x="81.92925" y="24.1901" z="10.0812"/>
<Position x="-193.61118" y="2.66953" z="-31.8027"/>
</Transform>
<MTSGeometry Name="MTSSimple_0" MultiUV="0" Type="MTSCube" />
<MTSInstance Name="Layer2D_0" Collapsed="1">
<LayerData Text="" TextColor="1.000000 0.831373 0.168627" Radius="2" Name="Layer2D_0" WidgetLine="0"/>
</MTSInstance>
</MTSInstance>
<MTSInstance Name="Simple_1" Visible="0">
<Transform>
<Scale x="81.92925" y="24.1901" z="10.0812"/>
<Position x="60.61118" y="50" z="-31.8027"/>
</Transform>
<MTSGeometry Name="MTSSimple_1" MultiUV="0" Type="MTSCube" />
<MTSInstance Name="Layer2D_1" Collapsed="1">
<LayerData Text="" TextColor="1.000000 0.831373 0.168627" Radius="2" Name="Layer2D_1" WidgetLine="0"/>
</MTSInstance>
</MTSInstance>
<MTSInteractor Name="start_rot">
<Target Name="MTSInstance.Layer2D_0"/>
<MTSHandle Event="MouseLeftClick" Action="MTSAssignProperty" Target="MTSTimeElem.Rotate_Camera::trgr" Value="1"/>
</MTSInteractor>
<MTSInteractor Name="stop_rot">
<Target Name="MTSInstance.Layer2D_1"/>
<MTSHandle Event="MouseLeftClick" Action="MTSAssignProperty" Target="MTSTimeElem.stop_Camera::trgr" Value="1"/>
</MTSInteractor>
<MTSTimeElem Name="Rotate_Camera" Type="Keyframe" On="1" Loop="1" >
<Target Name="MTSCamera" Property="rot_" Timeline="T1"/>
<Time>0 2 4 6 8</Time>
<Timeline Name="T1" Type="3D">* [0 90 0] [0 180 0] [0 270 0] [0 360 0]</Timeline>
</MTSTimeElem>
<MTSTimeElem Name="stop_Camera" Type="Keyframe" On="0">
<Target Name="MTSCamera" Property="rot_" Timeline="T2"/>
<Time></Time>
<Timeline Name="T2" Type="3D"></Timeline>
</MTSTimeElem>
................................................................................................ |
||
|
|
EnIgMaTiCScOrPioN Member |
Hey !!
Its simple.
<MTSTimeElem Name="Rotate_Camera" Type="Keyframe" On="1" Loop="1" >
<Target Name="MTSCamera" Property="rot_" Timeline="T1"/>
<Time> 0 1 </Time>
<Timeline Name="T1" Type="3D"> * +[0 45 0] </Timeline>
</MTSTimeElem>
You dont need a Time Element for stop animation. You just stop this animation from the html button. Trigger it again and it starts from where it stopped. Let me know if it works. |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

