OnInit

Description

This callback is fired when a property page is opened (inspected). You can use it to initialize a property page. To access the property page, use the global PPG object which is available in your OnInit callback.

This callback is only used in custom properties implemented with one of the supported scripting languages. For plug-in based properties implemented with C# or the C++API, use the PPGEvent callback instead.

Applies To

Custom Properties implemented in a scripting language

Scripting Syntax

// JScript
function <property_name>_OnInit()
{
   ...
}

# Python
def <property_name>_OnInit():
   ...

' VBScript
Function <property_name>_OnInit()
   ...
End Function

<property_name> is the name specified in the call to RegisterProperty, with any spaces converted to underscores. For example, if you register a property with the name "My Property", the callback function names start with "My_Property".

See Also

Define

DefineLayout

OnChanged

OnClicked

OnClosed

OnTab

PPGEvent

Property Callbacks



Autodesk Softimage 2011