Print Message to ACT Log

Goal

The following script demonstrates how to print debug messages to the ACT log. For more information on how to access the ACT log, see the Debug Mode section of the ACT Developer's Guide.

Code

def after_object_changed(this, object_changed, property_name):# Do not edit this line
    """
    Called after an object is changed.
    Keyword Arguments : 
        this -- the datamodel object instance of the python code object you are currently editing in the tree
        object_changed -- The object that was changed
        property_name -- The property that was changed
    """


    # To access properties created using the Property Provider, please use the following command.
    # this.GetCustomPropertyByPath("your_property_group_name/your_property_name")

    # To access scoping properties use the following to access geometry scoping and named selection respectively:
    # this.GetCustomPropertyByPath("your_property_group_name/your_property_name/Geometry Selection")
    # this.GetCustomPropertyByPath("your_property_group_name/your_property_name/Named Selection")
    
    # Write debug messages to the extension log using the following command
    ExtAPI.Log.WriteMessage("Inside after_object_changed")
    
    ExtAPI.Log.WriteMessage("object_changed : " + object_changed.Name)
    ExtAPI.Log.WriteMessage("property_name : " + property_name)
    
    pass