Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 619 Bytes

Context.append.md

File metadata and controls

29 lines (19 loc) · 619 Bytes

Context.append

Append Instances to a Context.




Introduction

A context may contain both content and metacontent, added via .append() and .data[] respectively.

The contents of a Context is the instances, and it's data global information about the environment in which publishing occurs, such as time of day or currently logged on user.




Examples

import pyblish.api as pyblish

context = pyblish.Context()
instance = pyblish.Instance(name="MyInstance")
context.append(instance)
{{ file.mtime }}