vcCommandPanelAction
The action panel can be opened when executing a python command. To open the panel, import vcCommand * and use the executeInActionPanel() method
Events
Name | Parameters | Description |
OnPanelClosed | None | Triggered when a close button on an action panel is clicked. |
Examples
Example. Trigger a function when the action panel is closed. Write this to into your python command.
from vcCommand import * from vcScript import * cmd = getCommand() app = cmd.Application panel = app.PythonActionPanel def first_state(): executeInActionPanel() addState(first_state) def OnCloseMethodCalled(): print "Python action panel closed!" panel.OnPanelClosed = OnCloseMethodCalled |