Tasks/FBKeyingGroupLocal.py
27 lCube.Translation.SetAnimated(
True)
28 lCube.Rotation.SetAnimated(
True)
29 lCube.Scaling.SetAnimated(
True)
33 ltran = lCube.PropertyList.Find (
'Translation (Lcl)' )
34 lrot = lCube.PropertyList.Find (
'Rotation (Lcl)' )
35 lsca = lCube.PropertyList.Find (
'Scaling (Lcl)' )
38 localKeyGroup =
FBKeyingGroup(
"KrisLocalKeyGroup", FBKeyingGroupType.kFBKeyingGroupLocal)
41 print "Property Count Before Added Properties: %d \n" % localKeyGroup.GetPropertyCount ()
44 localKeyGroup.AddProperty(ltran)
45 localKeyGroup.AddProperty(lrot)
46 localKeyGroup.AddProperty(lsca)
49 print "Property Count After Added Properties: %d \n"% localKeyGroup.GetPropertyCount ()
52 localKeyGroup.SetActive (
True)
55 localKeyGroup.SetEnabled (
True)
58 print localKeyGroup.GetCumulativePropertyCount ()
67 lPlayer.Goto(
FBTime(0,0,0,20))
74 localKeyGroup.RemoveProperty (ltran)
77 lPlayer.Goto(
FBTime(0,0,0,40))
86 print "FindPropertyIndex", localKeyGroup.FindPropertyIndex (lrot)
87 print "FindPropertyIndex", localKeyGroup.FindPropertyIndex (lsca)
90 print localKeyGroup.GetCumulativePropertyCount ()