BasicOperations/LockProperty.py
17 scaling = cube.PropertyList.Find(
'Lcl Scaling' )
19 print "After setting to (2,2,2) : " + str(scaling.Data)
22 scaling.SetLocked(
True )
24 print "After locking and setting to (3,3,3) : " + str(scaling.Data)
27 print "Is the property locked : " + str(scaling.IsLocked())
30 scaling.SetLocked(
False )
32 print "After unlocking and setting to (4,4,4) : " + str(scaling.Data)
35 print "Is the property locked : " + str(scaling.IsLocked())
38 scaling.SetMemberLocked( 1 ,
True )
40 print "After locking Y and setting to (5,5,5) : " + str(scaling.Data)
43 print "Is X locked : " + str(scaling.IsMemberLocked( 0 ))
44 print "Is Y locked : " + str(scaling.IsMemberLocked( 1 ))
45 print "Is Z locked : " + str(scaling.IsMemberLocked( 2 ))
48 scaling.SetMemberLocked( 1 ,
False )
50 print "After unlocking Y and setting to (6,6,6) : " + str(scaling.Data)