For the complete documentation index, see llms.txt. This page is also available as Markdown.

.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.

Naming Convention

Data members are using mixedCase.

Wrong

instance.data["snake_case_is_for_python"] = True
instance.data["CamelCaseIsForClasses"] = False

Right

instance.data["myVariable"] = True
instance.data["longName"] = 42
instance.data["veryLongVariable"] = 5

The 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