|
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
|
|
|
|
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
|
|
|
|
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
|
|
|