Adobe Forums

Add Me

Tags:



Reply
LinkBack Thread Tools Display Modes
help with basic animation control
  #1 (permalink)  
Old 12-02-2008, 07:06 AM
Tom_Brooks@adobeforums.com
Guest
 
Posts: n/a
Default help with basic animation control

Could someone take a look at this file and see what I am missing? there are 2 items in the scene. I have a key frame animation embedded into the u3d file. The camper door is simply suppose to open. I'm using the Animation Controller.js attached to the annotation. And when you click the rectangular gray button above it is simply suppose to play the animation.

Can someone let me know what step I have missed?

<http://www.tbnewmedia.com/test/Animation%20Controller.js>

<http://www.tbnewmedia.com/test/camper2.pdf>

-Thanks!


Reply With Quote


  #2 (permalink)  
Old 12-02-2008, 07:06 AM
grayson@adobe.com@adobeforums.com
Guest
 
Posts: n/a
Default Re: help with basic animation control

Tom,

The JavaScript attached to the button on the page needs to get a reference to the 3D annotation's script context in order to send commands to it. Here's how to do that (replace your existing script with the following):

var a3d = getAnnots3D( pageNum )[0];
if ( a3d && a3d.activated && a3d.context3D )
{
var c3d = a3d.context3D;
c3d.MyAnimation.play();
**

Grayson
Reply With Quote


  #3 (permalink)  
Old 12-02-2008, 07:06 AM
Tom_Brooks@adobeforums.com
Guest
 
Posts: n/a
Default Re: help with basic animation control

I tried the following code but it didn't function. Can u take a look at the file and see if you can get it to work? Did it run for you?

Maybe its a hierarchy thing. I also had to set the playback style to none because it wouldn't stop playing by default.

Let me know...
Reply With Quote


Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Hairstyles | UFO Videos | Bollywood Wallpapers | Poems  | WWE


All times are GMT. The time now is 09:56 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.