3ds Max C++ API Reference
|
Enumerations | |
enum class | ScriptSource : int { NotSpecified , Embedded , NonEmbedded , Dynamic } |
Functions | |
ScripterExport int | GetUIScaledValue (float value) |
ScripterExport int | GetValueUIUnscaled (float value) |
ScripterExport float | GetUIScaledValueFloat (float value) |
ScripterExport float | GetValueUIUnscaledFloat (float value) |
ScripterExport bool | SetMAXScriptListenerLogFile (const MCHAR *filename, const MCHAR *mode) |
Sets MAXScript listener log file to specified file. More... | |
ScripterExport bool | GetMAXScriptListenerLogFile (MSTR &listenerLogFileName) |
Gets the MAXScript listener log file name if present. More... | |
ScripterExport bool | CanRunScriptingFeature (MaxSDK::ISceneScriptSecurityManager::ScriptingFeature scriptingFeature) |
Test whether the specified ScriptingFeature can be executed. More... | |
ScripterExport void | ValidateCanRunMAXScriptSystemCommand (const MCHAR *command, Value **arg_list, int count) |
Validate whether MAXScript system commands can be executed. More... | |
ScripterExport void | ValidateCanRunMAXScriptSystemCommand (const MCHAR *command, const MCHAR *arguments) |
Validate whether MAXScript system commands can be executed. More... | |
ScripterExport void | ValidateCanRunPythonScripts (const MCHAR *command, Value **arg_list, int count) |
Validate whether Python scripts can be executed. More... | |
ScripterExport void | ValidateCanRunPythonScripts (const MCHAR *command, const MCHAR *arguments) |
Validate whether Python scripts can be executed. More... | |
ScripterExport MSTR | CreateStringRepresentationOfArgumentList (Value **arg_list, int count) |
Create string representation of argument list. More... | |
|
strong |
Enumerator | |
---|---|
NotSpecified | source of the script was not specified; same security rights as for Embedded scripts will apply |
Embedded | source of the script was a scene file (i.e., a scene file embedded script), security rights dependent on Safe Scene Script Execution settings |
NonEmbedded | source of the script was not a scene file, full security rights, i.e. no security restrictions. |
Dynamic | the script is dynamically generated at runtime and could contain input from various sources that are interpreted as scripted commands. Therefore dynamic scripts will always execute with restricted security rights, regardless of Safe Scene Script Execution settings |
ScripterExport int MAXScript::GetUIScaledValue | ( | float | value | ) |
ScripterExport int MAXScript::GetValueUIUnscaled | ( | float | value | ) |
ScripterExport float MAXScript::GetUIScaledValueFloat | ( | float | value | ) |
ScripterExport float MAXScript::GetValueUIUnscaledFloat | ( | float | value | ) |
ScripterExport bool MAXScript::SetMAXScriptListenerLogFile | ( | const MCHAR * | filename, |
const MCHAR * | mode | ||
) |
Sets MAXScript listener log file to specified file.
[in] | filename | - The fully qualified path for the listener log file |
[in] | mode | - The file open mode specification, typically "w" or "a". See the MAXScript Help file, topic FileStream Values, for a description of the mode string values. Note that this method automatically adds 't' to the specified mode string. |
ScripterExport bool MAXScript::GetMAXScriptListenerLogFile | ( | MSTR & | listenerLogFileName | ) |
Gets the MAXScript listener log file name if present.
[out] | listenerLogFileName | - Returns the fully qualified path for the listener log file |
ScripterExport bool MAXScript::CanRunScriptingFeature | ( | MaxSDK::ISceneScriptSecurityManager::ScriptingFeature | scriptingFeature | ) |
Test whether the specified ScriptingFeature can be executed.
This function checks to see whether the specified ScriptingFeature can be executed. The specified ScriptingFeature is disabled in the following cases:
[in] | scriptingFeature | - The ScriptingFeature. |
ScripterExport void MAXScript::ValidateCanRunMAXScriptSystemCommand | ( | const MCHAR * | command, |
Value ** | arg_list, | ||
int | count | ||
) |
Validate whether MAXScript system commands can be executed.
This function checks to see whether MAXScript system commands can be executed, and if not throws an exception. MAXScript system command execution is disabled in the following cases:
[in] | command | - The name of the MAXScript system command. Note that this name is used only for error reporting purposes by 3ds Max. |
[in] | arg_list | - The list of arguments to the command. |
[in] | count | - The count of arguments in arg_list. |
ScripterExport void MAXScript::ValidateCanRunMAXScriptSystemCommand | ( | const MCHAR * | command, |
const MCHAR * | arguments | ||
) |
Validate whether MAXScript system commands can be executed.
This function checks to see whether MAXScript system commands can be executed, and if not throws an exception. MAXScript system command execution is disabled in the following cases:
[in] | command | - The name of the MAXScript system command. Note that this name is used only for error reporting purposes by 3ds Max. |
[in] | arguments | - A string representation of the list of arguments to the command. Note that this value can be nullptr. |
ScripterExport void MAXScript::ValidateCanRunPythonScripts | ( | const MCHAR * | command, |
Value ** | arg_list, | ||
int | count | ||
) |
Validate whether Python scripts can be executed.
This function checks to see whether Python scripts can be executed, and if not throws an exception. Python script execution through the python MAXScript interface is disabled in the following cases:
[in] | command | - The name of the Python script execution command. Note that this name is used only for error reporting purposes by 3ds Max. |
[in] | arg_list | - The list of arguments to the command. |
[in] | count | - The count of arguments in arg_list. |
ScripterExport void MAXScript::ValidateCanRunPythonScripts | ( | const MCHAR * | command, |
const MCHAR * | arguments | ||
) |
Validate whether Python scripts can be executed.
This function checks to see whether Python scripts can be executed, and if not throws an exception. Python script execution through the python MAXScript interface is disabled in the following cases:
[in] | command | - The name of the Python script execution command. Note that this name is used only for error reporting purposes by 3ds Max. |
[in] | arguments | - A string representation of the list of arguments to the command. Note that this value can be nullptr. |
ScripterExport MSTR MAXScript::CreateStringRepresentationOfArgumentList | ( | Value ** | arg_list, |
int | count | ||
) |
Create string representation of argument list.
This function creates a string representation of the specified argument list. Note that this can be a fairly expensive call, and should only be called when necessary. This function would be typically be used in code that is a standard MAXScript primitive implementation. For example:
[in] | arg_list | - The list of arguments. |
[in] | count | - The count of arguments in arg_list. |