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® / Python / [Solved] Setting Values in Custom Properties...?
  RSS 2.0 ATOM  

[Solved] Setting Values in Custom Properties...?
Rate this thread
 
56430
 
Permlink of this thread  
avatar
  • Location: Horsham, UK
  • Total Posts: 23
  • Joined: 14 April 2009 11:10 AM

Hi all…

I have a facial stabilisation script for MoCap to a Facial Bone Rig that seems to work a treat… I am now trying to add a Cube above the characters head with a set of custom properties linked to the weighting of the various Parent/Child Constraints that I have used for the process - I have attempted using the

varSenderOut.WriteData([var])

to assign values to the relation constraint - which works until the constraint is activated, at which point the values return to zero. I have tried activating the Constraint before updating the values and still end up with zero’s…

My answer is to set values directly to the custom properties after the set up has taken place - but have no idea of the syntax to do so...? Any help would be appreciated...!!

varProperty objHeadCube.PropertyList.Find(varName)
varProperty.Value varValue

...or something like that...???

Thanks

Thad.



Replies: 1
/userdata/avatar/h2fen3w5h_StinkySitThumb.jpg

Doh...!!!

it’s not .Value - it’s .Data...!

Author: Thaddeus Darwin

Replied: 02 June 2011 02:02 AM