Table of Contents

Module: Scene ./Scene.py

The Blender Scene module

This module provides Scene manipulation routines.

Example:

    from Blender import Scene

    curscene = Scene.getCurrent()
    ob = curscene.getChildren()[0]       # first object
    newscene = Scene.New('testscene')
    cam = curscene.getCurrentCamera()    # get current camera object
    newscene.link(ob)                    # link 'ob' to Scene
    newscene.link(cam)
    newscene.makeCurrent()               # make current Scene


Functions   
New
get
getCurrent
unlink
  New 
New ( name='Scene' )

Creates and returns new Scene with (optionally given) name

  get 
get ( name=None )

Returns a Scene object with name name if given, None if not existing, or a list of all Scenes otherwise.

  getCurrent 
getCurrent ()

Returns the currently active Scene

  unlink 
unlink ( scene )

Removes the Scene scene from Blender

Exceptions   
SystemError, "current Scene can not be removed!"
Classes   
Scene

Wrapper for Scene DataBlock


Table of Contents

This document was automatically generated on Mon Feb 25 13:52:14 2002 by HappyDoc version r1_5