Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  General Topics    About sceneCapture and actionAnimator

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi Admin,

I want sceneCapture and pop-up saving window show automatically after a simple camera animation .

I use actionAnimator to do this, but it doesn't workFrown Can you look at it?

<MTSInteractor>
<MTSHandle Event="captureit" Action="VETDispatchCall" Function="ShotIt::VMPCapture()" />
<MTSHandle Event="saveit" Action="VETDispatchCall" Function="ShotIt::VMPRemotePersist()" />
</MTSInteractor>


<MTSTimeElem Type="Keyframe" Name="sceneCapture_anim" On="0">
<Target Name="MTSCamera" Property="rot_" Timeline="cam_rot"/>
<Time>
0 3
</Time>
<Timeline Name="cam_rot" Type="3D">
* [0 136 0]
</Timeline>
<MTSTimeElem Type="ActionAnimator">
<Time> 0 4 5 6 </Time>
<PostMessage Message="captureit" />
<PostMessage Message="saveit" />
</MTSTimeElem>
</MTSTimeElem>
...

Thank you very much Smile
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Avi
AviScript Extraordinaire
Member
Picture of Avi
Posted Hide Post
First off change the capture to Local just to make sure you’ve set up everything correctly.. once you have you can change it back to remote:


<MTSInteractor>
<MTSHandle Event="captureit" Action="VETDispatchCall" Function="ShotIt::VMPCapture()" />
<MTSHandle Event="saveit" Action="VETDispatchCall" Function="ShotIt::VMPLocalPersist()" />
</MTSInteractor>

Secondly, change your animation to:


<MTSTimeElem Type="Keyframe" Name="sceneCapture_anim" On="0">
<Target Name="MTSCamera" Property="rot_" Timeline="cam_rot"/>
<Time>
0 3 4 5
</Time>
<Timeline Name="cam_rot" Type="3D">
* [0 136 0] - [0 136 0]
</Timeline>
<MTSTimeElem Type="ActionAnimator">
<MTSNoop/>

<MTSNoop/>
<PostMessage Message="captureit" />
<PostMessage Message="saveit" />
</MTSTimeElem>
</MTSTimeElem>

let me know how this works out for you.

Avi
 
Posts: 24 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks Avi,

I will try it soonSmile
 
Posts: 181 | 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  General Topics    About sceneCapture and actionAnimator