Module Spyder :: Class NewMaterial
[hide private]
[frames] | no frames]

Class NewMaterial

source code

object --+
         |
        NewMaterial

Spyder-generated class

module tarantula

file /home/sjoerd/Spyder-devel/tarantula/material.spy

Description

This class defines object materials

A new material must be defined as NewMaterial

and then show()'ed

Within an object, its material can then be

defined to as Material(name)

Any material can be accessed as

Spyder.tarantula.get_material(name)

Currently, only the color property is implemented

Textures and transparency will be implemented soon

Wiki

http://www.spyderware.nl/wiki/classes/NewMaterial

Validate block

>>>            
#assert color != None or texture != None  ## will be enabled when textures are supported
assert color != None               
>>>

Form block

>>>            
DEFAULT color (0,0,0)
TYPE color required
TYPE texture none
TYPE transparency none               
>>>

Converters

Can be converted from:

Registered methods:

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
String name
*Color color
*Filename texture
Float transparency = 0
Properties [hide private]

Inherited from object: __class__