OrsMacroPlayer¶
Controller of a macro recording and execution
- author:
Dragonfly Team
- contact:
- email:
- organization:
Comet Technologies Canada Inc.
- address:
460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
- copyright:
Comet Technologies Canada Inc. All rights reserved 2023.
- date:
Oct 20 2016 09:50
- dragonflyVersion:
3.0
- UUID:
9ee31aae761511e7b35d448a5b5d70c0
Class Code¶
- class OrsPythonPlugins.OrsMacroPlayer.OrsMacroPlayer.OrsMacroPlayer(*args, **kwargs)¶
- cleanup()¶
Deletes the variables managed by the plugin. It is the place to remove callbacks and other references to Python objects that would prevent them to be garbage collected. This method is called during the process of deletion of the plugin. It calls for the cleanup and deletion of the forms.
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –
- classmethod openWithSpecificMacro(macroPath)¶
Method called to start an instance of the current plugin and show a specific macro.
- Parameters:
macroPath – path of the macro to show
- classmethod startMacroOnSelection(macroPath, listSelectedObjectsGUID)¶
Method called from the contextual menu item to start an instance of the current plugin and start the execution of a specific macro with variables set from the selection. The UI will be shown only if a user interaction is required.
- Parameters:
macroPath – path of the macro to execute
listSelectedObjectsGUID – string representation of the selected objects
- classmethod startMacroWithAutoSelection(macroPath)¶
Method called from the contextual menu item to start an instance of the current plugin and start the execution of a specific macro. Objects used by the macro will be selected automatically. The UI will be shown only if a user interaction is required.
- Parameters:
macroPath – path of the macro to execute