WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-10-2015, 04:44 PM
wildcat wildcat is offline
Member
 
Join Date: Nov 2015
Posts: 4
Hi Jeff. The commands did not activate the animation. In looking at the code you suggested, I didn't see anything that indicates which animation to run. Was I supposed to include other code?

Thanks,
--Frank
Reply With Quote
  #2  
Old 11-10-2015, 04:50 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Try getting a handle to the animation as a child object and apply the commands to that:

Code:
animation = drone.getChild('Take 001')
Does this work for you?
Reply With Quote
  #3  
Old 11-10-2015, 05:33 PM
wildcat wildcat is offline
Member
 
Join Date: Nov 2015
Posts: 4
I tried the following:

Code:
animation = drone.getChild('Take 001')
animation.setAnimationLoopMode(1)
vizact.onkeydown(' ',animation.setAnimationState,viz.TOGGLE)
and also, for good measure:

Code:
animation = drone.getChild('Take 001')
animation.setAnimationLoopMode(1)
vizact.onkeydown(' ',drone.setAnimationState,viz.TOGGLE)
and unfortunately neither started the propellers spinning.

Don't know if this is relevant to the problem at hand, but just in case, here is an observation. The drone model has four propellers. I get no error messages, but I do get the following informational messages in the Interactive Window when I press the spacebar:

LinkVisitor links 3 for "Drone_propeller1"
LinkVisitor links 3 for "Drone_propeller2"
LinkVisitor links 3 for "Drone_propeller3"
LinkVisitor links 3 for "Drone_propeller4"

Thanks for your help
--Frank
Reply With Quote
Reply


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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get head of the avatar models alone carlosppamaral Vizard 3 03-23-2014 03:05 PM
Two animations performed by avatar at the same time michelcm3 Vizard 1 09-21-2007 09:51 AM
avatar animations vduckie Vizard 12 02-27-2006 01:32 PM
Pausing and stepping through avatar animations Vbents Vizard 3 11-03-2005 09:14 AM
More on avatar animations vjonshih Vizard 3 09-20-2004 04:37 PM


All times are GMT -7. The time now is 12:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC