Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    Do so that the hyper view may end, too, if animation ends?

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<Hiroko>
Posted
How should be described xml to end the hyper view mode at the same time as animation's ending?

I will describe the text.
Thanks.

<MTSScene Version="311" >
<MTSSceneParms RenderMode="LightTexture" BlendShadow="1" EdgeBias="1" >
<Transform>
<Scale x="0.02256" y="0.02256" z="0.02256" />
<Position x="0" y="-0.97233" z="-0.2465" />
</Transform>
</MTSSceneParms>
<MTSCamera OrbitDist="4" >
<Rotate x="30.9397" y="43.54482" z="0" />
<ViewLocation x="0" y="0" z="4" />
</MTSCamera>

<MTSBaseComponent Hyperview="1" CoordinateSystem="2" RestrictMacHyperView="0" Rect="0 0 0 0"/>


<MTSAction Name="start_hyperview" >
<MTSAssignProperty Target="MTSBaseComponent::smod" Value="1" />
</MTSAction>

<MTSInteractor Name="return_from_hyperview" >
<MTSHandle Event="MouseLeftDown" Action="MTSAssignProperty" Target="MTSBaseComponent::smod" Value="0" />
</MTSInteractor>

<MTSInteractor Name="LoadingDoneInteractor">
<MTSHandle Event="MTXLoad:done" Action="EnableHyperView"/>
</MTSInteractor>

<MTSInstance Name="motion_02" >
<Transform>
<Scale x="-1" y="-1" z="-1" />
<Shear xy="-0" yz="-0" xz="-0" />
<Rotate x="90.00002" y="180" z="-0.00002" />
</Transform>

<MTSInstance Name="a160_" >
<MTSGeometry Name="a160__GEOM" MultiUV="0" BackFaceDir="-1" />
</MTSInstance>
</MTSInstance>
<MTSInteractor Name="user_clicked_out">
<MTSHandle Event="MTSEventModalEnd" Action="MTSAssignProperty" Target="MTSInstance.mae_ANIM::visb" Value="0" />
</MTSInteractor>

<MTSTimeElem Type="Keyframe" Name="mae_ANIM" On="1" >
<Target Name="MTSInstance.a160_" Property="loc_" Timeline="maea160__Tran_0" />
<Time>
0 0.33333 0.5 0.66667 0.83333 1 1.16667 1.33333 1.5 1.66667 1.83333 2
</Time>
<Timeline Name="maea160__Tran_0" Type="3D" >
S[0 0 0] S[0 -10.9625 0] S[0 -23.124 0]
S[0 -38.3687 0] S[0 -55.6688 0] S[0 -73.9967 0]
S[0 -92.3246 0] S[0 -109.6248 0] S[0 -124.8695 0]
S[0 -137.03101 0] S[0 -145.0816 0] S[0 -147.9935 0]
</Timeline>
</MTSTimeElem>
<MTSTimeElem Type="MTSStream" Name="jack_mov" Path="jack_mov.mts" >
<Target Name="MTSInstance.motion_02" />

</MTSTimeElem>
</MTSScene>
 
Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of DavidR
Posted Hide Post
create an animation of the hyperview time period, then make the animation a peer to the other animation, with a parent animation as the triggering anim.
hth
DavidR
 
Posts: 308 | Location: Atlanta Georgia | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Hi Hiroko !!

Adding an ActionAnimator will work. Check the following code. The animation has an ActionAnimator added.


<MTSScene Version="311" >
<MTSSceneParms RenderMode="LightTexture" BlendShadow="1" EdgeBias="1" >
<Transform>
<Scale x="0.02256" y="0.02256" z="0.02256" />
<Position x="0" y="-0.97233" z="-0.2465" />
</Transform>
</MTSSceneParms>
<MTSCamera OrbitDist="4" >
<Rotate x="30.9397" y="43.54482" z="0" />
<ViewLocation x="0" y="0" z="4" />
</MTSCamera>

<MTSBaseComponent Hyperview="1" CoordinateSystem="2" RestrictMacHyperView="0" Rect="0 0 0 0"/>


<MTSAction Name="start_hyperview" >
<MTSAssignProperty Target="MTSBaseComponent::smod" Value="1" />
</MTSAction>

<MTSInteractor Name="return_from_hyperview" >
<MTSHandle Event="MouseLeftDown" Action="MTSAssignProperty" Target="MTSBaseComponent::smod" Value="0" />
</MTSInteractor>

<MTSInteractor Name="LoadingDoneInteractor">
<MTSHandle Event="MTXLoad:done" Action="EnableHyperView"/>
</MTSInteractor>

<MTSInstance Name="motion_02" >
<Transform>
<Scale x="-1" y="-1" z="-1" />
<Shear xy="-0" yz="-0" xz="-0" />
<Rotate x="90.00002" y="180" z="-0.00002" />
</Transform>

<MTSInstance Name="a160_" >
<MTSGeometry Name="a160__GEOM" MultiUV="0" BackFaceDir="-1" />
</MTSInstance>
</MTSInstance>
<MTSInteractor Name="user_clicked_out">
<MTSHandle Event="MTSEventModalEnd" Action="MTSAssignProperty" Target="MTSInstance.mae_ANIM::visb" Value="0" />
</MTSInteractor>

<MTSTimeElem Type="Keyframe" Name="mae_ANIM" On="1" >
<Target Name="MTSInstance.a160_" Property="loc_" Timeline="maea160__Tran_0" />
<Time>
0 0.33333 0.5 0.66667 0.83333 1 1.16667 1.33333 1.5 1.66667 1.83333 2
</Time>
<Timeline Name="maea160__Tran_0" Type="3D" >
S[0 0 0] S[0 -10.9625 0] S[0 -23.124 0]
S[0 -38.3687 0] S[0 -55.6688 0] S[0 -73.9967 0]
S[0 -92.3246 0] S[0 -109.6248 0] S[0 -124.8695 0]
S[0 -137.03101 0] S[0 -145.0816 0] S[0 -147.9935 0]
</Timeline>

<MTSTimeElem Type="ActionAnimator" >
<MTSNoop/> <MTSNoop/> <MTSNoop/> <MTSNoop/> <MTSNoop/> <MTSNoop/> 
<MTSNoop/> <MTSNoop/> <MTSNoop/> <MTSNoop/> <MTSNoop/>
<MTSAssignProperty Target="MTSBaseComponent::smod"  Value="0" />
</MTSTimeElem>

</MTSTimeElem>
<MTSTimeElem Type="MTSStream" Name="jack_mov" Path="jack_mov.mts" >
<Target Name="MTSInstance.motion_02" />

</MTSTimeElem>
</MTSScene>



Cheers,

Anup
 
Posts: 557 | Location: India | Registered: February 12, 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    Do so that the hyper view may end, too, if animation ends?