[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11172] trunk/blender/source/blender/ python/api2_2x/doc/Ipo.py: Ipo doc correction thanks to kempoller

Ken Hughes khughes at pacific.edu
Sat Jul 7 06:45:58 CEST 2007


There was a typo in the example code, but the new comments make no sense.

Ken

Campbell Barton wrote:
> Revision: 11172
>           http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11172
> Author:   campbellbarton
> Date:     2007-07-05 13:28:11 +0200 (Thu, 05 Jul 2007)
>
> Log Message:
> -----------
> Ipo doc correction thanks to kempoller
>
> Modified Paths:
> --------------
>     trunk/blender/source/blender/python/api2_2x/doc/Ipo.py
>
> Modified: trunk/blender/source/blender/python/api2_2x/doc/Ipo.py
> ===================================================================
> --- trunk/blender/source/blender/python/api2_2x/doc/Ipo.py	2007-07-05 07:05:16 UTC (rev 11171)
> +++ trunk/blender/source/blender/python/api2_2x/doc/Ipo.py	2007-07-05 11:28:11 UTC (rev 11172)
> @@ -14,12 +14,12 @@
>  Example::
>  	from Blender import Ipo
>  
> -	ob = Ipo.Get('ObIpo')          # retrieves an Ipo object
> -	ob.name = 'ipo1'				 # change the Ipo's name
> -	icu = ipo[Ipo.OB_LOCX]         # request X Location Ipo curve object
> +	ob = Ipo.Get('ObIpo')				# retrieves an Ipo object
> +	ob.name = 'ipo1'					# change the Ipo's name
> +	icu = ob[Ipo.OB_LOCX]				# change here ipo to ob
>  	if 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 curve
> +		val = icu[2.5]					# get the curve's value at time 2.5
> +		ob[Ipo.OB_LOCX] = None			# change here icu  to ob
>  	
>  Each type of Ipo has different types Ipocurves.  With the exception of Shape
>  Key Ipos, constants are used to specify all Ipocurves.  There are two ways
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>
>   



More information about the Bf-committers mailing list