c4d.plugins.SceneSaverData
¶
A data class for creating scene savers. Use
RegisterSceneSaverPlugin()
to register the plugin.
Note
Before you start writing your own SceneSaverData plugin, you should read NodeData Management before.
See also
Py-IES Meta plugin example.
c4d.plugins.
SceneSaverData
¶
c4d.plugins.NodeData
SceneSaverData.
Save
(
self
,
node
,
name
,
doc
,
filterflags
)
¶
Override - Save the document.
Changed in version R15.057.
Warning
Calling
BaseDocument.GetDocumentPath()
from a scene saver invoked by
SaveDocument()
is now consistent with the GUI behavior of the export.
BaseDocument.GetDocumentPath()
now always returns the current path of the document instead of the target path of the file to save for all formats (except
Cinema 4D (*.c4d)
and
Cinema 4D XML (*.xml)
).
A new document flag
DOCUMENT_SAVEDOC_DESTINATIONPATH
(only set when saving) can be used in scene savers to get the destination path of the exported file.
Parameters: |
|
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
int |
||||||||||||||||||||||||||||
Returns: |
The return values:
|