|
Hi,
I’m trying to add the camera switcher to a relation constraint without success in MB 2009. I can do it via the gui but when doing it via python, nothing happens:
#The relations constraint:
mConstraintRelation = FBConstraintRelation( 'Test' ) mCamSwitcher = FBFindModelByName ('Camera Switcher') mCamSwitchBox = mConstraintRelation.SetAsSource( mCamSwitcher )
If i try to set the box position, MB asserts and quits.
mConstraintRelation.SetBoxPosition(mCamSwitchBox, 100, 30)
Is there something i’m missing?
Thanks
Mondo
|
|
|
|
Hi, This seem to be a bug…
By trying this :
from pyfbsdk import * mConstraintRelation = FBConstraintRelation( 'Test' ) mCamSwitcher = FBFindModelByName ('Camera Switcher') mCamSwitchBox = mConstraintRelation.SetAsSource( mCamSwitcher )
if mCamSwitchBox:
print mConstraintRelation.GetBoxPosition(mCamSwitchBox)
else:
print "Error: Box not created"
I realised that mb doesn’t create a box and return None…
This is logged as Bug #324075
(Python) Relation Contraint,Box Creation from camera switcher does not work
CHARLES PAULIN | SQA AUTOMATION ANALYST
AUTODESK Media & Entertainment
|
|
|