BasicOperations/PlotClearProperties.py
20 lTranslation = lCube.PropertyList.Find(
'Lcl Translation' )
27 lPlayerControl.Goto( lTime )
32 lPlayerControl.Goto( lTime )
37 lPlayerControl.Goto( lTime )
42 lTranslation.SetMemberLocked( 1 ,
True )
46 print 'Number of keys on each channel before everything : '
48 for lNode
in lTranslation.GetAnimationNode().Nodes:
49 print ' Node #' + str(lIndex) +
' : ' + str( lNode.KeyCount )
51 print 'All keys are there.'
57 lOptions.PlotLockedProperties =
False
59 lSystem.CurrentTake.PlotTakeOnSelected( lOptions )
62 print 'Number of keys on each channel after ploting #1 : '
64 for lNode
in lTranslation.GetAnimationNode().Nodes:
65 print ' Node #' + str(lIndex) +
' : ' + str( lNode.KeyCount )
67 print 'Nothing is plotted on locked channel.'
73 lOptions.PlotLockedProperties =
True
75 lSystem.CurrentTake.PlotTakeOnSelected( lOptions )
78 print 'Number of keys on each channel after ploting #2 : '
80 for lNode
in lTranslation.GetAnimationNode().Nodes:
81 print ' Node #' + str(lIndex) +
' : ' + str( lNode.KeyCount )
83 print 'Keys on locked channel are also plotted.'
88 lSystem.CurrentTake.ClearAllProperties(
False )
91 print 'Number of keys on each channel after clearing #1 : '
93 for lNode
in lTranslation.GetAnimationNode().Nodes:
94 print ' Node #' + str(lIndex) +
' : ' + str( lNode.KeyCount )
96 print 'Keys on locked channel are not cleared.'
100 lSystem.CurrentTake.ClearAllProperties(
False ,
True )
103 print 'Number of keys on each channel after clearing #2 : '
105 for lNode
in lTranslation.GetAnimationNode().Nodes:
106 print ' Node #' + str(lIndex) +
' : ' + str( lNode.KeyCount )
108 print 'All keys have been cleared.'