General functions

init

def __init__(self):

afterInit

This event will be called whenever the extension is added to the project and when exist while the project is loading. UI-Parameter, Events and Actions should be defined here as well as everything which is needed to be initialized for the extension object.

def afterInit(self):

onParameterFeedback

This function will be called on any parameter feedback/change

def onParameterFeedback(self, parameter):
    if parameter == self.someParameter:
        print(self.someParameter.value)

onDisabling

This function will be called whenever the object is set to disabled

def onDisabling(self):

onEnabling

This function will be called whenever the object is set to disabled

shutdown/remove

This function will be called whenever the project will be closed as well as when the object will be removed from the project.

Timer

Set parameter as read only

Set suffix for parameter

Add a suffix to a parameter. Supports float, int, point and vector.

Status Arrow

Status

Logging

Validate IP parameter

Adding workflow

It is possible to also ship with your extension a default workflow.

This means when the extension object is added to Grid Studio, the workflow is automatically added with the object and all the functions that are built inside the workflow can be loaded automatically.

circle-info

Before adding the line of code below, it is important to build your workflow and export it. For more details, please refer to Workflow

Once you have a workflow file, you need to add one line of code inside the afterInit() function

Last updated