[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11191] trunk/blender/source/blender/ python/api2_2x/doc: Correct comments in example for Python Ipo module doc.

Ken Hughes khughes at pacific.edu
Sat Jul 7 19:33:46 CEST 2007


Revision: 11191
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11191
Author:   khughes
Date:     2007-07-07 19:33:46 +0200 (Sat, 07 Jul 2007)

Log Message:
-----------
Correct comments in example for Python Ipo module doc.
Remove redundant description of yafrayGIMethod in Python Render module doc.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/doc/Ipo.py
    trunk/blender/source/blender/python/api2_2x/doc/Render.py

Modified: trunk/blender/source/blender/python/api2_2x/doc/Ipo.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/Ipo.py	2007-07-07 16:15:01 UTC (rev 11190)
+++ trunk/blender/source/blender/python/api2_2x/doc/Ipo.py	2007-07-07 17:33:46 UTC (rev 11191)
@@ -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 = ob[Ipo.OB_LOCX]				# change here ipo to ob
+	ipo = Ipo.Get('ObIpo')				# retrieves an Ipo object
+	ipo.name = 'ipo1'					# change the Ipo's name
+	icu = ipo[Ipo.OB_LOCX]				# request X Location Ipo curve
 	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
-		ob[Ipo.OB_LOCX] = None			# change here icu  to ob
+		ipo[Ipo.OB_LOCX] = None			# delete the Ipo curve
 	
 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

Modified: trunk/blender/source/blender/python/api2_2x/doc/Render.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/Render.py	2007-07-07 16:15:01 UTC (rev 11190)
+++ trunk/blender/source/blender/python/api2_2x/doc/Render.py	2007-07-07 17:33:46 UTC (rev 11191)
@@ -327,7 +327,7 @@
   @type set: BPy_Scene or None
   @ivar yafrayGIMethod: Global Illumination method.
   Valid values are NONE (0), SKYDOME (1) or FULL (2).
-  @type yafrayGIMethod: int
+  @type yafrayGIMethod: int {NONE (0), SKYDOME (1), GIFULL (2)}
   @ivar yafrayGIQuality: Global Illumination quality.
   @type yafrayGIQuality: int {NONE (0), LOW (1), MEDIUM (2), HIGH (3), HIGHER (4), BEST (5), USEAOSETTINGS (6)}
   @ivar yafrayExportToXML: If true export to an xml file and call yafray instead of plugin.
@@ -346,8 +346,6 @@
   @type yafrayAntiAliasingThreshold: float [0.05, 1.0]
   @ivar yafrayNumberOfProcessors: Number of processors to use.
   @type yafrayNumberOfProcessors: int [1, 8]
-  @ivar yafrayGIMethod: Global illumination method.
-  @type yafrayGIMethod: int {NONE (0), SKYDOME (1), GIFULL (2)}
   @ivar yafrayGICache: Cache occlusion/irradiance samples (faster).
   @type yafrayGICache: boolean
   @ivar yafrayGICacheBumpNormals: Enable/disable bumpnormals for cache.





More information about the Bf-blender-cvs mailing list