Module Modifier
[frames | no frames]

Module Modifier

The Blender.Modifier submodule

New:

This module provides access to the Modifier Data in Blender.

Example:
 from Blender import *

 ob = Object.Get('Cube')        # retrieve an object
 mods = ob.modifiers            # get the object's modifiers
 for mod in mods:
   print mod,mod.name           # print each modifier and its name
 mod = mods.append(Modifier.Type.SUBSURF) # add a new subsurf modifier
 mod[Modifier.Settings.LEVELS] = 3     # set subsurf subdivision levels to 3

Classes
Modifier This object provides access to a modifier for a particular object accessed from Modifiers.
Modifiers This object provides access to list of modifiers for a particular object.

Variable Summary
readonly dictionary Settings: Constant Modifier dict used for changing modifier settings.
readonly dictionary Type: Constant Modifier dict used for Modifiers.append() to a modifier sequence and comparing with Modifier.type:

Variable Details

Settings

Constant Modifier dict used for changing modifier settings.
  • RENDER - Used for all modifiers
  • REALTIME - Used for all modifiers
  • EDITMODE - Used for all modifiers
  • ONCAGE - Used for all modifiers
  • OBJECT - Used for Armature, Lattice, Curve, Boolean and Array
  • VERTGROUP - Used for Armature, Lattice and Curve
  • LIMIT - Array and Mirror
  • FLAG - Mirror and Wave
  • COUNT - Decimator and Array
  • TYPES - Used for Subsurf only
  • LEVELS - Used for Subsurf only
  • RENDLEVELS - Used for Subsurf only
  • OPTIMAL - Used for Subsurf only
  • UV - Used for Subsurf only
  • ENVELOPES - Used for Armature only
  • START - Used for Build only
  • LENGTH - Used for Build only
  • SEED - Used for Build only
  • RANDOMIZE - Used for Build only
  • AXIS - Used for Mirror only
  • RATIO - Used for Decimate only
  • STARTX - Used for Wave only
  • STARTY - Used for Wave only
  • HEIGHT - Used for Wave only
  • WIDTH - Used for Wave only
  • NARROW - Used for Wave only
  • SPEED - Used for Wave only
  • DAMP - Used for Wave only
  • LIFETIME - Used for Wave only
  • TIMEOFFS - Used for Wave only
  • OPERATION - Used for Wave only
Type:
readonly dictionary

Type

Constant Modifier dict used for Modifiers.append() to a modifier sequence and comparing with Modifier.type:
  • ARMATURE - type value for Armature modifiers
  • BOOLEAN - type value for Boolean modifiers
  • BUILD - type value for Build modifiers
  • CURVE - type value for Curve modifiers
  • DECIMATE - type value for Decimate modifiers
  • LATTICE - type value for Lattice modifiers
  • SUBSURF - type value for Subsurf modifiers
  • WAVE - type value for Wave modifiers
Type:
readonly dictionary

Generated by Epydoc 2.1 on Thu Jul 13 16:50:05 2006 http://epydoc.sf.net