from pyfbsdk import *
cube = FBModelCube( "Cube" )
cube.Show = True
scaling = cube.PropertyList.Find( 'Lcl Scaling' )
scaling.Data = FBVector3d( 2 , 2 , 2 )
print "After setting to (2,2,2) : " + str(scaling.Data)
scaling.SetLocked( True )
scaling.Data = FBVector3d( 3 , 3 , 3 )
print "After locking and setting to (3,3,3) : " + str(scaling.Data)
print "Is the property locked : " + str(scaling.IsLocked())
scaling.SetLocked( False )
scaling.Data = FBVector3d( 4 , 4 , 4 )
print "After unlocking and setting to (4,4,4) : " + str(scaling.Data)
print "Is the property locked : " + str(scaling.IsLocked())
scaling.SetMemberLocked( 1 , True )
scaling.Data = FBVector3d( 5 , 5 , 5 )
print "After locking Y and setting to (5,5,5) : " + str(scaling.Data)
print "Is X locked : " + str(scaling.IsMemberLocked( 0 ))
print "Is Y locked : " + str(scaling.IsMemberLocked( 1 ))
print "Is Z locked : " + str(scaling.IsMemberLocked( 2 ))
scaling.SetMemberLocked( 1 , False )
scaling.Data = FBVector3d( 6 , 6 , 6 )
print "After unlocking Y and setting to (6,6,6) : " + str(scaling.Data)
del( cube )