Proxy class for a DocumentObjectGroupPython
Control instance.
More...
Public Member Functions | |
def | __init__ (self, fp) |
Initialization method for ControlProxy. More... | |
def | onDocumentRestored (self, fp) |
Method called when document is restored to make sure everything is as it was. More... | |
def | onBeforeChange (self, fp, prop) |
Method called before DocumentObjectGroupPython Control is changed. More... | |
def | onChanged (self, fp, prop) |
Method called after DocumentObjectGroupPython Control was changed. More... | |
def | setProperties (self, fp) |
Method to set properties during initialization or document restoration. More... | |
Public Attributes | |
temporary_export_path | |
A str path to an export folder. More... | |
updated | |
Static Public Attributes | |
bool | updated = False |
A bool - True if a property was changed by a class and not user. More... | |
Proxy class for a DocumentObjectGroupPython
Control instance.
A ControlProxy instance adds properties to a DocumentObjectGroupPython
Control instance and responds to their changes. It provides a control panel to control animations.
To access such a dialog double-click Control in Tree View or right click and select Show control panel option from a context menu.
To connect this Proxy
object to a DocumentObjectGroupPython
Control do:
Definition at line 1051 of file Control.py.
def Control.ControlProxy.__init__ | ( | self, | |
fp | |||
) |
Initialization method for ControlProxy.
A class instance is created and made a Proxy
for a generic DocumentObjectGroupPython
Control object. During initialization number of properties are specified and preset.
fp | A barebone DocumentObjectGroupPython Control object to be extended. |
Definition at line 1071 of file Control.py.
def Control.ControlProxy.onBeforeChange | ( | self, | |
fp, | |||
prop | |||
) |
Method called before DocumentObjectGroupPython
Control is changed.
An old export path is stored for a case in which a new export path is not a valid path.
fp | A DocumentObjectGroupPython Control object. |
prop | A str name of a property about to change. |
Definition at line 1099 of file Control.py.
def Control.ControlProxy.onChanged | ( | self, | |
fp, | |||
prop | |||
) |
Method called after DocumentObjectGroupPython
Control was changed.
Values of changed properties (start time, step time, stop time, export path) are checked for validity and edited if they are not.
fp | A DocumentObjectGroupPython Control object. |
prop | A str name of a changed property. |
Definition at line 1116 of file Control.py.
def Control.ControlProxy.onDocumentRestored | ( | self, | |
fp | |||
) |
Method called when document is restored to make sure everything is as it was.
Reinitialization it creates properties and sets them to default, if they were not restored automatically. Properties of connected ViewObject
are also recreated and reset if necessary.
fp | A restored DocumentObjectGroupPython Control object. |
Definition at line 1085 of file Control.py.
def Control.ControlProxy.setProperties | ( | self, | |
fp | |||
) |
Method to set properties during initialization or document restoration.
The properties are set if they are not already present and an AnimateDocumentObserver
is recreated.
fp | A restored or barebone DocumentObjectGroupPython Control object. |
Definition at line 1168 of file Control.py.
Control.ControlProxy.temporary_export_path |
A str path to an export folder.
Definition at line 1104 of file Control.py.
|
static |
A bool - True if a property was changed by a class and not user.
Definition at line 1059 of file Control.py.