CreativeStudio Command Line Version

CreativeStudio comes with a command line version.
This allows you to automate data generation and binary conversion without displaying the GUI.

We cannot provide adequate support for scripting questions at this time.
We apologize for any inconvenience.

Setting up the Command Line Version of CreativeStudio

The CreativeStudio command line version can be found in the following location.

%NW4C_ROOT%/tools/CreativeStudio/NW4C_CreativeStudioConsole.exe

Path Settings

Set the PATH environment variable to the directory where NW4C_CreativeStudioConsole.exe has been installed.

If the system environment variable is not configured, you need to set the current directory to the directory where NW4C_CreativeStudioConsole.exe has been installed.

Outputting a Binary File Using a Script

This section describes a script for converting multiple intermediate files into a binary file.
Enter the commands below to launch the CreativeStudio command line version and automatically run the commands specified in the script.

NW4C_CreativeStudioConsole.exe -s=<path to script file>

Script File

Run the following script file using the NW4C_CreativeStudioConsole.exe -s command to automatically read in the human.cmdl and human.cskla intermediate files and output the Binary.bcres binary file.

The script file is saved using UTF-16 BOM encoding.

Sample Script File

Sample Script File
  1. Loading Files

    This specifies the files for NW4C_CreativeStudioConsole to load.

    CreativeStudio.Execute("FileLoad", "<filename to load>")

    FileLoad: Use this command to load a file.

  2. Outputting Data to a Binary File

    This converts the files loaded by NW4C_CreativeStudioConsole to binary and then outputs.

    CreativeStudio.Execute("FileSave", "-o=<filename to output>", "-t=nw4cBinary")

    FileSave: Use this command to save a file.
    -o: Enter the directory and filename to output.
    -t: Specify the output file type.

  3. Initializing the Tool

    This initializes the tool.

    CreativeStudio.Execute("File", " ")

After you initialize the tool, the script operations are done.
Change the filenames used in the examples above and try converting your own intermediate files to a binary file.

Conversion from a skeletal model to a model

Added an sample script for loading a skeletal model from the file given below, converting to a model, and saving the result.

# Load a file.
CreativeStudio.Execute("FileLoad", "C:/Dir/data.cmdl")
# Select a optimization target
CreativeStudio.Execute("Selection", "-cs=data", "-s=r")
# Do Optimize
CreativeStudio.Execute("OptimizeSelectedModel", "-cobsm")
# Save the File.
CreativeStudio.Execute("FileSave", "-o=D:/Dir/data_result.cmdl", "--type=Save", "-ft=nw4cAscii", "-sao")
# Reset NWCS.
CreativeStudio.Execute("File" ,"")
# move to next file....


CONFIDENTIAL