Public feed #604199

Untitled

public python v1 · immutable
Raw Edit
·published 2007-07-05 11:23 UTC
rendered paste body
from http://members.optusnet.com.au/cjbarton/BPY_API/Ipo-module.htmlcurrent:from Blender import Ipoob = Ipo.Get('ObIpo')          # retrieves an Ipo objectob.name = 'ipo1'                                 # change the Ipo's nameicu = ipo[Ipo.OB_LOCX]         # request X Location Ipo curve objectif icu != None and len(icu.bezierPoints) > 0: # if curve exists and has BezTriple points	val = icu[2.5]              # get the curve's value at time 2.5	icu[Ipo.OB_LOCX] = None     # delete the ipo curveshould be:from Blender import Ipoob = Ipo.Get('ObIpo')          # retrieves an Ipo objectob.name = 'ipo1'                                 # change the Ipo's nameicu = ob[Ipo.OB_LOCX]         # change here ipo to obif icu != None and len(icu.bezierPoints) > 0: # if curve exists and has BezTriple points	val = icu[2.5]              # get the curve's value at time 2.5	ob[Ipo.OB_LOCX] = None     # change here icu  to ob