===Python API===
Fix various typos in Modifier, IpoCurve and Armature docs.
This commit is contained in:
@@ -118,7 +118,7 @@ def Get (name = None):
|
|||||||
|
|
||||||
def New (name = None):
|
def New (name = None):
|
||||||
"""
|
"""
|
||||||
Return a new armatre.
|
Return a new armature.
|
||||||
@type name: string or nothing
|
@type name: string or nothing
|
||||||
@param name: The string name of the new armature.
|
@param name: The string name of the new armature.
|
||||||
@rtype: Blender Armature.
|
@rtype: Blender Armature.
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ BezTriples.
|
|||||||
|
|
||||||
Example::
|
Example::
|
||||||
import Blender
|
import Blender
|
||||||
ob = Blender.Ipo.Get('ObIpo') # retrieves an Ipo object
|
ipo = Blender.Ipo.Get('ObIpo') # retrieves an Ipo object
|
||||||
ob.name = 'ipo1' # change the Ipo's name
|
ipo.name = 'ipo1' # change the Ipo's name
|
||||||
icu = ipo[Blender.Ipo.OB_LOCX] # request X Location Ipo curve object
|
icu = ipo[Blender.Ipo.OB_LOCX] # request X Location Ipo curve object
|
||||||
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
|
||||||
@@ -153,8 +153,7 @@ class IpoCurve:
|
|||||||
|
|
||||||
def delBezier(index):
|
def delBezier(index):
|
||||||
"""
|
"""
|
||||||
Deletes a Bezier point from a curve (B{deprecated}). B{Note}:
|
Deletes a Bezier point from a curve.
|
||||||
new scripts should use B{del icu[index]} instead.
|
|
||||||
@type index: integer
|
@type index: integer
|
||||||
@param index: the index of the Bezier point. Negative values index from the end of the list.
|
@param index: the index of the Bezier point. Negative values index from the end of the list.
|
||||||
@rtype: None
|
@rtype: None
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ Example::
|
|||||||
|
|
||||||
Example::
|
Example::
|
||||||
# Apply a lattice to an object and get the deformed object
|
# Apply a lattice to an object and get the deformed object
|
||||||
# Uses an object called 'Cube' and a lattive called ''Lattive
|
# Uses an object called 'Cube' and a lattice called 'Lattice'
|
||||||
|
|
||||||
from Blender import *
|
from Blender import *
|
||||||
ob_mesh= Object.Get('Cube')
|
ob_mesh= Object.Get('Cube')
|
||||||
|
|||||||
Reference in New Issue
Block a user