|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.autodesk.workflows.Autodesk
public class Autodesk
| Method Summary | |
|---|---|
static Response |
DoTranslation(java.lang.String inputFile,
java.lang.String outputFile,
java.lang.String inputType,
java.lang.String outputType,
java.lang.String[] extraArgs)
Do a translation using the GreenBox DoTranslation command. |
static Response |
exec(java.lang.String[] command,
java.lang.String[] envp)
Run an external command. |
static java.lang.String |
getFileType(java.lang.String file,
byte[] buf)
Given a file this method determines the type of the file. |
static java.lang.String[] |
getSuffixes(java.lang.String fileType,
boolean inputSuffixes)
Determine the suffixes that are permitted for a particular file type. |
static java.lang.String[] |
getTranslationInputs()
Determine the file types that are supported for input. |
static java.lang.String[] |
getTranslationOutputs()
Determine the file types that are supported for output. |
static Response |
maya(java.lang.String melScript)
Run Maya in batch mode. |
static Response |
maya(java.lang.String melScript,
java.lang.String version)
Run Maya in batch mode. |
static boolean |
runWorkflow(java.io.File file)
Run the named workflow. |
static Response |
tessellate(java.lang.String inputFile,
java.lang.String outputFile)
Do a tessellation. |
static Response |
tessellate(java.lang.String inputFile,
java.lang.String outputFile,
java.lang.String settingsFile)
Do a tessellation. |
static Response |
translate(java.lang.String inputFile,
java.lang.String outputFile)
Do a translation. |
static Response |
translate(java.lang.String inputFile,
java.lang.String outputFile,
java.lang.String inputType,
java.lang.String outputType)
Do a translation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Response DoTranslation(java.lang.String inputFile,
java.lang.String outputFile,
java.lang.String inputType,
java.lang.String outputType,
java.lang.String[] extraArgs)
inputFile - the name of the file to translate.outputFile - the name of the file to produce.inputType - the file type of the input file.outputType - the file type being requested for the output file.extraArgs - an array of arguments to pass to Aruba.
public static Response exec(java.lang.String[] command,
java.lang.String[] envp)
command - an array with the first element being the command to run
and the remaining elements the arguments to the command.envp - an array of name=value strings defining the runtime environment.
public static Response translate(java.lang.String inputFile,
java.lang.String outputFile,
java.lang.String inputType,
java.lang.String outputType)
inputFile - the name of the file to translate.outputFile - the name of the file to produce.inputType - the type of the input file.outputType - the type of the output file.
public static Response translate(java.lang.String inputFile,
java.lang.String outputFile)
inputFile - the name of the file to translate.outputFile - the name of the file to produce.
public static Response tessellate(java.lang.String inputFile,
java.lang.String outputFile)
public static Response tessellate(java.lang.String inputFile,
java.lang.String outputFile,
java.lang.String settingsFile)
inputFile - the input file to tessellate.outputFile - the file to send the tessellation to.settingsFile - the file containing the tessellation settings.
public static Response maya(java.lang.String melScript,
java.lang.String version)
melScript - the name (including path) of a MEL script to run.version - the version of Maya to run. This may be null in which case
the newest version of Maya is used.
public static Response maya(java.lang.String melScript)
public static java.lang.String[] getTranslationInputs()
public static java.lang.String[] getTranslationOutputs()
public static java.lang.String[] getSuffixes(java.lang.String fileType,
boolean inputSuffixes)
fileType - a file type as returned from either
getTranslationInputs() or getTranslationOutputs()inputSuffixes - if true then input suffixes
are return, otherwise output suffixes are returned.
.getTranslationInputs(),
getTranslationOutputs()
public static java.lang.String getFileType(java.lang.String file,
byte[] buf)
file - the fully qualified name of a file.buf - some bytes from the head of the given file.
getTranslationInputs() or
getTranslationOutputs().getTranslationInputs(),
getTranslationOutputs()public static boolean runWorkflow(java.io.File file)
file - a File object referencing the workflow to run. This
may not be null.
true is returned if the workflow ran without
throwing any exceptions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||