kynjo
public python v1 · immutableimport Blender, mathfrom Blender import *curframe = Blender.Get('curframe')ipo = Ipo.Get('ObIpo')icu = ipo[Ipo.OB_LOCZ]if icu != None and len(icu.bezierPoints) > 0: ipoval = icu[curframe]if ipoval > 1.0: ipoval = 1.0if ipoval < 0.0: ipoval = 0.0ob_mesh = Object.Get('Cube')modifs = ob_mesh.modifiersfor mod in modifs: if mod.name == 'cast': cast = factorcast[Modifier.Settings.Ratio] = ipovalob_mesh.makeDisplayList()