Back to Content
Command Line Interface
The professional version of CopperCube supports advanced command line options
in order to batch-create files and scenes. The syntax is:
CopperCube.exe [file] [-import:file] [-importanimated:file] [-runscript:code] [-save:file] [-publish:WebGL|Flash|Windows|MacOSX|Android] [-quit]
Example:
CopperCube -import:somefile.3ds -save:myscene.ccb -publish:WebGL -quit
This will import a 3DStudio file 'somefile.3ds', save it as 'myscene.ccb' and publish it as WebGL scene. When everything is finished, the editor will close.
Details:
- [file]: Specifies a .ccb file to be opened in the editor. This is optional.
- [-import:file]: Specifies a static 3d model file to be imported into the current scene in the editor. The file can be of any supported format, like .3ds, .x, .obj, .lwo etc. This is optional.
- [-importanimated:file]: Specifies an animated 3d model file to be imported into the current scene in the editor. The file can be of any supported format, like .x, .ms3d, .fbx etc. This is optional.
- [-runscript:code]: Specifies a function to be called from the plugins. Use for example -runscript:scaleModel(); in order to run a script function named 'scaleModel' which has been defined by one of the plugins.
- [-save:file]: Saves the current document as .ccb file. This is optional.
- [-publish:WebGL|Flash|Windows|MacOSX|Android]: Publishes the current document as WebGL, Flash, Windows .exe, Mac OS X .app or Android app. Note: Use the -save option to save the document before, in order to make coppercube publish the document to the location you want it to be. This is optional.
- [-quit]: Closes the editor again. If not specified, the editor stays open.
In order to use the command line interface on On Mac OS X, run the command line with the application binary inside the .app bundle.