forked from bartvdbraak/blender
===Python API===
Fix various typos in Modifier, IpoCurve and Armature docs.
This commit is contained in:
parent
e5be894a29
commit
18ab4ff62d
@ -118,7 +118,7 @@ def Get (name = None):
|
||||
|
||||
def New (name = None):
|
||||
"""
|
||||
Return a new armatre.
|
||||
Return a new armature.
|
||||
@type name: string or nothing
|
||||
@param name: The string name of the new armature.
|
||||
@rtype: Blender Armature.
|
||||
|
@ -13,8 +13,8 @@ BezTriples.
|
||||
|
||||
Example::
|
||||
import Blender
|
||||
ob = Blender.Ipo.Get('ObIpo') # retrieves an Ipo object
|
||||
ob.name = 'ipo1' # change the Ipo's name
|
||||
ipo = Blender.Ipo.Get('ObIpo') # retrieves an Ipo object
|
||||
ipo.name = 'ipo1' # change the Ipo's name
|
||||
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
|
||||
val = icu[2.5] # get the curve's value at time 2.5
|
||||
@ -153,8 +153,7 @@ class IpoCurve:
|
||||
|
||||
def delBezier(index):
|
||||
"""
|
||||
Deletes a Bezier point from a curve (B{deprecated}). B{Note}:
|
||||
new scripts should use B{del icu[index]} instead.
|
||||
Deletes a Bezier point from a curve.
|
||||
@type index: integer
|
||||
@param index: the index of the Bezier point. Negative values index from the end of the list.
|
||||
@rtype: None
|
||||
|
@ -21,7 +21,7 @@ Example::
|
||||
|
||||
Example::
|
||||
# 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 *
|
||||
ob_mesh= Object.Get('Cube')
|
||||
|
Loading…
Reference in New Issue
Block a user