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 = 2.2if ipoval < 0.0: ipoval = 0.0ob_mesh = Object.Get('Cube')modifs = ob_mesh.modifiersfor mod in modifs: if mod.name == 'Cast': cast = modcast[Modifier.Settings.FACTOR] = ipovalob_mesh.makeDisplayList()