.data
Available to Instance and Context objects and used to pass data between library and plug-ins.
Introduction
Data is primarily gathered during Collection and used during subsequent plug-ins, such as Validation and Extraction. Data can also be used as a means of messaging across plug-ins.
See Tale of Three APIs for more information.
Naming Convention
Data members are using mixedCase.
Wrong
instance.data["snake_case_is_for_python"] = True
instance.data["CamelCaseIsForClasses"] = FalseRight
instance.data["myVariable"] = True
instance.data["longName"] = 42
instance.data["veryLongVariable"] = 5The motivation is to separate between what is Python and what is Pyblish data.
Examples
Data of any type may be added, including complex objects.
{{ file.mtime }}
Last updated