Correct comments in example for Python Ipo module doc.

Remove redundant description of yafrayGIMethod in Python Render module doc.
This commit is contained in:
Ken Hughes 2007-07-07 17:33:46 +00:00
parent 71550bd3c6
commit db2cc09913
2 changed files with 5 additions and 7 deletions

@ -14,12 +14,12 @@ several IpoCurves, and an IpoCurve is composed of several BezTriples.
Example:: Example::
from Blender import Ipo from Blender import Ipo
ob = Ipo.Get('ObIpo') # retrieves an Ipo object ipo = Ipo.Get('ObIpo') # retrieves an Ipo object
ob.name = 'ipo1' # change the Ipo's name ipo.name = 'ipo1' # change the Ipo's name
icu = ob[Ipo.OB_LOCX] # change here ipo to ob 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 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 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 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 Key Ipos, constants are used to specify all Ipocurves. There are two ways

@ -327,7 +327,7 @@ class RenderData:
@type set: BPy_Scene or None @type set: BPy_Scene or None
@ivar yafrayGIMethod: Global Illumination method. @ivar yafrayGIMethod: Global Illumination method.
Valid values are NONE (0), SKYDOME (1) or FULL (2). 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. @ivar yafrayGIQuality: Global Illumination quality.
@type yafrayGIQuality: int {NONE (0), LOW (1), MEDIUM (2), HIGH (3), HIGHER (4), BEST (5), USEAOSETTINGS (6)} @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. @ivar yafrayExportToXML: If true export to an xml file and call yafray instead of plugin.
@ -346,8 +346,6 @@ class RenderData:
@type yafrayAntiAliasingThreshold: float [0.05, 1.0] @type yafrayAntiAliasingThreshold: float [0.05, 1.0]
@ivar yafrayNumberOfProcessors: Number of processors to use. @ivar yafrayNumberOfProcessors: Number of processors to use.
@type yafrayNumberOfProcessors: int [1, 8] @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). @ivar yafrayGICache: Cache occlusion/irradiance samples (faster).
@type yafrayGICache: boolean @type yafrayGICache: boolean
@ivar yafrayGICacheBumpNormals: Enable/disable bumpnormals for cache. @ivar yafrayGICacheBumpNormals: Enable/disable bumpnormals for cache.