OnInit

Description

This callback is fired when a property page is opened (inspected).

Use this callback to initialize a property page. To access the property page, use the PPG object in your OnInit callback.

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

    # Perlscript
    sub <property_name>_OnInit
    {
       ...
    }

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

See Also

• Define

• DefineLayout

• OnChanged

• OnClicked

• OnClosed

• OnTab

• PPGEvent

• Property Callbacks

Autodesk Softimage v7.5