LogicPrefix

Logic siUILogicPrefix act like namespaces for external script files that implement handlers for more than one property. When you specify a prefix, that prefix name will be appear before the name of the parameter or button in the external file. To define the prefix for the callback names in the logic script, use the LogicPrefix setting:

LogicPrefix = "<#Raax31021">prefix_name>";

 

For a discussion of the differences between SPDL-based, runtime, and plug-in properties with respect to prefixes and naming conventions for their event handlers, see Using Prefixes with Custom Properties. That section also has a fairly extensive example of how to use the LogicPrefix setting.

prefix_name

Prefixes, like property names, have certain restrictions in Softimage:

• The first character must be a letter. In JScript, Python, C++, and PerlScript, the first character may also be an underscore (_).

• The first character cannot be a number.

• Subsequent characters can be letters, numbers, underscore (_) characters, or spaces.

• If you define a prefix in the SPDL file, you must use the prefix in its event handlers, whether they are implemented in an external file or embedded in a Logic section. For example, if you are defining a button called Undo and specify a prefix of XProp_, the OnInit callback should look like this:

function XProp_Undo_OnInit()
{
   ...
}


Autodesk Softimage v7.5