Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
4-star Rating (1 Vote) Rate It!  Login/Join 
Member
Posted
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>

 

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