All pastes #545696 Raw Edit

kynjo

public python v1 · immutable
·published 2007-06-06 20:50 UTC
rendered paste body
import 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.0  ob_mesh = Object.Get('Cube')modifs = ob_mesh.modifiersfor mod in modifs:        if mod.name == 'CAST': cast = mod mod[Modifier.Settings.FACTOR] = ipoval ob_mesh.makeDisplayList()