This commit is contained in:
2025-11-25 02:11:21 +08:00
parent 900de70539
commit abef69c80a
4 changed files with 141 additions and 10 deletions

View File

@@ -770,7 +770,7 @@ class KeyTransformSlider_Gui(object):
fv = G.KT_keyValues[n][fi]
lv = G.KT_keyValues[n][li]
for x in xrange(ti-2, -1, -1):
for x in range(ti-2, -1, -1):
v = G.KT_keyValues[n][fi+x+1]
if v == fv == lv:
del G.KT_keysSel[n][x]

View File

@@ -294,12 +294,12 @@ class Tangents(object):
if loopIndex in indexes:
newIndexes.append(loopIndex)
"""
print "indexList",indexList
print "values",values
print "difList",difList
print "indexes",indexes
print "newIndexes",newIndexes
"""
print("indexList",indexList)
print("values",values)
print("difList",difList)
print("indexes",indexes)
print("newIndexes",newIndexes)
"""
return newIndexes

View File

@@ -813,7 +813,7 @@ class AnimationCrashRecovery(object):
self.clearOldFiles()
OpenMaya.MScriptUtil.setBool(retCode, True)
print "beforeSaveCheck", args, self.mayaFileName
# print("beforeSaveCheck", args, self.mayaFileName)
"""
@@ -941,7 +941,7 @@ import maya.OpenMaya as om
import maya.OpenMayaAnim as oma
def undoTest(*args):
print 'Checking Undo callback'
print('Checking Undo callback')
def undoRedoCallback(arg):
@@ -966,7 +966,7 @@ def undoRedoCallback(arg):
for i in callbackIDs:
oma.MAnimMessage.removeCallback(i)
except:
print 'There is no ID to delete'
print('There is no ID to delete')
undoRedoCallback("add")