|
Eidolon
|
Inherits object.

Public Member Functions | |
| def | __init__ (self, target=None, scriptdir=None) |
| def | addVar (self, name, val) |
| def | convertPath (self, path) |
| def | writeLine (self, line='') |
| def | writeObjectComment (self, label, obj) |
| def | writeCreateObject (self, obj) |
| def | writeSetupObject (self, obj) |
| def | writeMaterial (self, mgr, mat) |
| def | writeObjects (self, mgr, objs) |
| def | writeScene (self, mgr) |
Public Attributes | |
| scriptHeader | |
| writeComments | |
| namemap | |
| includedObjs | |
| scriptdir | |
| target | |
This class generates Python code to recreate the current scene as defined by the SceneManager object passed to it. This relies on plugins implementing getScriptCode() correctly to generate plugin-specific loading and setup code when requested by this type.
| def __init__ | ( | self, | |
target = None, |
|||
scriptdir = None |
|||
| ) |
Initialize the writer with `target' being the file-like object to write text into, or an instance of StringIO if this isn't provided. The `scriptdir' path is directory the script file being written will be in, this is None if writing non-script code. If `scriptdir' is present then all paths should be written relative to it.
| def addVar | ( | self, | |
| name, | |||
| val | |||
| ) |
| def convertPath | ( | self, | |
| path | |||
| ) |

| def writeCreateObject | ( | self, | |
| obj | |||
| ) |


| def writeLine | ( | self, | |
line = '' |
|||
| ) |

| def writeMaterial | ( | self, | |
| mgr, | |||
| mat | |||
| ) |


| def writeObjectComment | ( | self, | |
| label, | |||
| obj | |||
| ) |


| def writeObjects | ( | self, | |
| mgr, | |||
| objs | |||
| ) |


| def writeScene | ( | self, | |
| mgr | |||
| ) |

| def writeSetupObject | ( | self, | |
| obj | |||
| ) |


| includedObjs |
| namemap |
| scriptdir |
| scriptHeader |
| target |
| writeComments |
1.8.13