RegisterOperator (PluginRegistrar)
Introduced
5.1
Description
Registers a CustomOperator PluginItem.
Scripting Syntax
PluginRegistrar.RegisterOperator( Name )
C# Syntax
PluginItem PluginRegistrar.RegisterOperator( String in_name );Parameters
|
Parameter |
Type |
Description |
|
Name |
Name of the custom operator to register. It should begin with a letter and contain only letters, numbers and the underscore character. If an operator name contains spaces (for example, "My Custom Operator"), the callback function names must omit the spaces (for example, "MyCustomOperator_Update"). |
Return Value
Examples
JScript Example
function XSILoadPlugin( in_reg )
{
in_reg.Author = "ABC" ;
in_reg.Name = "ABC plugin" ;
in_reg.Major = 1;
in_reg.Minor = 0;
in_reg.URL = "www.abc.com"
// Let Softimage know that this plugin implements this CustomOperator
in_reg.RegisterOperator( "myCustomOperator" ) ;
return true ;
}See Also
Autodesk Softimage v7.5