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® / Autodesk MotionBuilder 2009 / "UseGlobalTransforms" in MB 2009 - Python
  RSS 2.0 ATOM  

"UseGlobalTransforms" in MB 2009 - Python
Rate this thread
 
20359
 
Permlink of this thread  
avatar
  • Matte
  • Posted: 14 December 2008 04:05 PM
  • Total Posts: 23
  • Joined: 22 January 2008 02:13 PM

Hey all,

Have had a chance to test mb 2009, and obviously checking that my previously written python scripts works, which they should, or so i thought. I cant seem to find the above variable, “UseGlobalTransforms”!? The docs clearly states that a FBModelPlaceHolder (returned when you add a object to a relation constraint i mb) should have that variable. But if i list all the attributes i can find on the node there are only 3, none of which is the above!?

I would classify this var and the possibility to switch between local/global in a relation constraint as one of THE most important things to be able to do via python. I sure hope iam just missing something here or else this is gonna be a huge problem. Maybee they have constructed another way of changing this via python? You can of course switch between the 2 manually by right clicking the box in the relation constraint, but thats not really possible when building scripted solutions. Anyone?

/Matte



Replies: 0
avatar

have you asked this in the python forum also?



Brad Clark
Co-Founder: Rigging Dojo-Teaching the art and science of character rigging
Author: Inspired 3D Advanced Rigging
The Character Animator Toolkit for Motionbuilder :available now:

Replies: 0
avatar
  • KxL
  • Posted: 15 December 2008 03:09 AM

I think it is now easier:

from pyfbsdk import *

lModels FBModelList()
FBGetSelectedModels(lModels)

if 
len(lModels) > 0:
  
lRel FBConstraintRelation('Test')
  
lBox lRel.SetAsSource(lModels[0])
  
lBox.UseGlobalTransforms False

BTW. I will ask Area Admin to move this to Python forum.

Cheers



Replies: 0
avatar
  • Matte
  • Posted: 15 December 2008 03:44 AM

Aha, lovely. I tried to access it as previously, using .Find() etc. Having just tested 2009 for a brief time i didnt think of testing access to it that way at that point, but i agree with you, that is simpler. :)

/Matte



Replies: 0