weightpaint_envelope_assign - was making an error checking a null vgroup

API_intro - changed URL from elysuin
others - added __copy__() docs.
This commit is contained in:
2007-01-02 13:12:23 +00:00
parent 4f90a3a627
commit 426cc6dca3
12 changed files with 68 additions and 8 deletions

View File

@@ -141,7 +141,7 @@ def env_from_group(ob_act, grp, PREF_UPDATE_ACT=True):
if PREF_UPDATE_ACT:
act_group = me.activeGroup
if act_group == 'None':
if act_group == None:
Draw.PupMenu('Error%t|No active vertex group.')
return

View File

@@ -35,11 +35,11 @@ The Blender Python API Reference
- L{Mathutils} (*)
- L{Mesh} (*)
- L{MeshPrimitives} (*)
- L{Metaball}
- L{Modifier} (*)
- L{Metaball} (*)
- L{NMesh} (*)
- L{Noise}
- L{Object} (*)
- L{Modifier} (*)
- L{Pose}
- L{Constraint} (*)
- L{ActionStrips<NLA>} (*)
@@ -226,7 +226,7 @@ A note to newbie script writers:
@version: 2.42
@see: U{www.blender3d.org<http://www.blender3d.org>}: main site
@see: U{www.blender.org<http://www.blender.org>}: documentation and forum
@see: U{www.elysiun.com<http://www.elysiun.com>}: user forum
@see: U{blenderartists.org<http://blenderartists.org>}: user forum
@see: U{projects.blender.org<http://projects.blender.org>}
@see: U{blender architecture<http://www.blender3d.org/cms/Blender_Architecture.336.0.html>}: blender architecture document
@see: U{www.python.org<http://www.python.org>}

View File

@@ -247,3 +247,10 @@ class Camera:
-CLIPPING
@return: py_none
"""
def __copy__ ():
"""
Make a copy of this camera
@rtype: Camera
@return: a copy of this camera
"""

View File

@@ -489,6 +489,12 @@ class Curve:
@rtype: L{Key<Key.Key>} object or None
"""
def __copy__ ():
"""
Make a copy of this curve
@rtype: Curve
@return: a copy of this curve
"""
class CurNurb:
"""

View File

@@ -122,3 +122,9 @@ class Group:
@type objects: custom object sequence
"""
def __copy__ ():
"""
Make a copy of this group
@rtype: Group
@return: a copy of this group
"""

View File

@@ -513,3 +513,10 @@ class Lamp:
-SIZE
@return: py_none
"""
def __copy__ ():
"""
Make a copy of this lamp
@rtype: Lamp
@return: a copy of this lamp
"""

View File

@@ -202,5 +202,11 @@ class Lattice:
@param frame: the frame at which the Lattice will be set as a keyframe
"""
def __copy__ ():
"""
Make a copy of this lattice
@rtype: Lattice
@return: a copy of this lattice
"""

View File

@@ -993,3 +993,10 @@ class Material:
@type event: string
@param event: "FrameChanged" or "Redraw".
"""
def __copy__ ():
"""
Make a copy of this material
@rtype: Material
@return: a copy of this material
"""

View File

@@ -1167,3 +1167,10 @@ class Mesh:
@param direction: specifies outward (0) or inward (1) normals. Outward
is the default. Value must be in the range [0,1].
"""
def __copy__ ():
"""
Make a copy of this mesh
@rtype: Mesh
@return: a copy of this mesh
"""

View File

@@ -154,7 +154,7 @@ class Metaball:
@type materials: list
"""
def copy():
def __copy__():
"""
Return a copy of this metaball object data.
@rtype: Metaball

View File

@@ -1795,11 +1795,18 @@ class Property:
"""
def copyNLA(obj):
"""
Copies all NLA strips from another object to this object.
"""
Copies all NLA strips from another object to this object.
@param obj: an object to copy NLA strips from.
@type obj: L{Object}
"""
"""
def __copy__ ():
"""
Make a copy of this object
@rtype: Object
@return: a copy of this object
"""
def convertActionToStrip():
"""

View File

@@ -340,3 +340,10 @@ class World:
-SIZE
@return: py_none
"""
def __copy__ ():
"""
Make a copy of this world
@rtype: World
@return: a copy of this world
"""