Module PyMOL
Definitions of simple 3D graphics objects and scenes containing them,
in a form that can be fed to the molecular visualization program
PyMOL
Scripts that use this module, directly or indirectly, must be run from
inside PyMOL, otherwise they will terminate with an error message.
This module is almost compatible with the modules VRML and VRML2,
which provide visualization by VRML browsers. There are no Polygon
objects, and the only material attribute supported is diffuse_color.
Example:
>>> from Scientific.Visualization.PyMOL import *
>>> scene = Scene([])
>>> scale = ColorScale(10.)
>>> for x in range(11):
>>> color = scale(x)
>>> scene.addObject(Cube(Vector(x, 0., 0.), 0.2,
>>> material=Material(diffuse_color = color)))
>>> scene.view()
-
- Parameters:
color (Color or str ) - a color object or a predefined color name
- Returns: Material
- a material with the 'diffuse color' attribute set to color
|
-
- Parameters:
color (Color or str ) - a color object or a predefined color name
- Returns: Material
- a material with the 'diffuse color' attribute set to color
|
_diffuse_material_dict
-
- Value:
|