Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / Knowing when an FBConstraint weight is 0.0
  RSS 2.0 ATOM  

Knowing when an FBConstraint weight is 0.0
Rate this thread
 
43743
 
Permlink of this thread  
avatar
  • Location: Sydney, Australia
  • Total Posts: 41
  • Joined: 05 December 2007 04:30 AM

Hi,

For the purposes of resetting a non-animatable property (IsDeformable) when a constraint is not active, I would like to know when an FBConstraint weight is 0.0. I need to have the constrained mesh not skinned whilst the constraint is active and return it to being skinned at the end.

The Animation and Deformation notifies are not fired when the weight is 0, I can’t setup a animation in node for the property as it’s not animatable. I am currently using the UIIdle event to monitor the weight of the constraint, however this is laggy and results in a brief glitch.

I can solve this problem if:

1. I can get the notify methods to be called when the weight is 0.0
2. I can get a per-frame callback rather than an sporadic idle call back
3. I can setup an AnimationNodeIn on a non-animatable property
4. There is another more dynamic way of turning skinning off or on

I am using MB7.5ext2

Cheers



Replies: 0
avatar
  • qhliao
  • Posted: 22 June 2010 10:47 AM

When you set the model’s visibility to be off, the deformation will be turned off as well. But not sure if it fit your case.




Replies: 0