[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

Campbell Barton cbarton at metavr.com
Mon Jul 9 16:25:41 CEST 2007


kempoller found some issues with this example he gave me,
he might do some more doc editing and I can review properly and commit 
when he's finished.

I just didnt want to thrash since theres no real need unless were close 
to release.

It would be nice if more python scripters could help with doc's so I 
wanted to get the ball rolling though I should have checked the example 
before adding.

Ken Hughes wrote:
> 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
>>
>>   
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
> 


-- 
Campbell J Barton (ideasman42)


More information about the Bf-committers mailing list