Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    .js Rewind function in a frame set

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Picture of lauramb
Posted
Ref: VPd-ds' Control Animation,
http://cole.viewpoint.com/~ddavies/controlanim/index.html


I'm attempting to use the html/js animation buttons from VPd-ds' Control Animation page in a frame set, attachment 1. All of the buttons work but the "REWIND". When I click it a .js error is generated, attachment 2.

HTML:
Rewind function: html/js function

<form>
<p>Poser Animation Sets Group</p>
<input name="PoserAnimSetsGroup" type=button value="Rewind" onclick="JavaScriptRazzarent.right.vmp.SetProperty('PoserAnimSetsGroup','rwnd','1','mts_int');vmp.Render();">

<input name="Cas_Wlk" type=buttonvalue="Cas_Wlk" onclick="JavaScriptRazzarent.right.vmp.TriggerAnim('Cas_Wlk')">

<input name="C_W-wlkbk" type=button value="C_W-wlkbk" onclick="JavaScriptRazzarent.right.vmp.TriggerAnim('C_W-wlkbk')">

<input name="C_W-LtTrn1" type=button value="C_W-LtTrn1" onclick="JavaScriptRazzarent.right.vmp.TriggerAnim('C_W-LtTrn1')">

This is the XML text that, I think, is controlled by the rewind

.mtx XML text excerpt :

</MTSInstance>
<MTSTimeElem Name="PoserAnimSetsGroup" On="1">
<MTSTimeElem Name="Cas_Wlk" On="0">
<MTSTimeElem Type="Keyframe" On="1">
<Target Name="MTSInstance.upNeck_1_tran" Property="loc_" Timeline="upNeck_1_Cas_Wlk_loc_0"/>
<Target Name="MTSInstance.upNeck_1_tran" Property="rot_" Timeline="upNeck_1_Cas_Wlk_rot_0"/>
<Target Name="MTSInstance.upNeck_1_tran" Property="scl_" Timeline="upNeck_1_Cas_Wlk_scl_0"/>
<Target Name="MTSInstance.head_1_tran" Property="loc_" Timeline="head_1_Cas_Wlk_loc_9"/>
<Target Name="MTSInstance.head_1_tran" Property="rot_" Timeline="head_1_Cas_Wlk_rot_9"/>

Imagevpdd_frms.jpg (94 KB, 76 downloads) html view
 
Posts: 131 | Location: Las Vegas, NV, USA | Registered: May 14, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of lauramb
Posted Hide Post
Attachment 2 for the previous post. (The edit button never came up Confused)

Imagejserror.jpg (17 KB, 39 downloads) jserror
 
Posts: 131 | Location: Las Vegas, NV, USA | Registered: May 14, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
You're getting a "vmp is undefined" error. Make sure you're placing the path to MTS3Interface.js and the vmp variable declaration (var vmp) in the same html as the frame that you're placing the vmp constructor line in.
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of lauramb
Posted Hide Post
Hi, Admin!

Thanks for the response!

I verified that they are both on the same page, but I still get the errors. They occur in XMLSpy and Homesite. However, they don't occur in the IE, I haven't tried Firefox.

For the moment, that's ok. I've been really concentrating on coordinating the animations. When it is necessary to do a rewind to test the messages are just a little annoying.
 
Posts: 131 | Location: Las Vegas, NV, USA | Registered: May 14, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  JavaScript    .js Rewind function in a frame set