Page History
...
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|
Scene Export from
...
Scene export is implemented as a command which means it can be called from scripts as well. using the CallCommand() function with id of 1029993. Export options can be defined via a document setting.
...
python
...
Code Block | ||
---|---|---|
| ||
import c4d
ARNOLD_SCENE_EXPORT = 1029993
def main():
options = c4d.BaseContainer()
options.SetFilename(0, "c:\\path\\to\\myscene.ass")
options.SetInt32(6, 10)
options.SetInt32(7, 20)
doc.GetSettingsInstance(c4d.DOCUMENTSETTINGS_DOCUMENT).SetContainer(ARNOLD_SCENE_EXPORT, options)
c4d.CallCommand(ARNOLD_SCENE_EXPORT)
if __name__=='__main__':
main() |
List of available option ids can be found in C4DtoA/res/c4d_symbols.h header file. They are the following:
...
- 0: all
- 1: selected
- 2: selected individually
...
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|