0 Usuarios y 1 Visitante están viendo este tema.
import mathdef NormalizeCurve(FCurves): for eachFCurve in FCurves: for eachKey in eachFCurve.Keys: if (eachKey.Time - int(eachKey.Time)) < 0.5: eachKey.Time = math.floor(eachKey.Time) else: eachKey.Time = math.ceil(eachKey.Time)def GetFCurves(obj): holder = [i for i in obj.Properties if ClassName(i)=="CustomProperty"] holder.append(obj) return [o.Source for i in holder for o in i.Parameters if ClassName(o.Source)=="FCurve"]for each in Application.Selection: NormalizeCurve(GetFCurves(each))
Perdón por mi ignorancia, pero no es lo mismo que el Animation Editor > Edit > AutoSnap to Keys (Discrete Time)?