Context
The context represents the world.
Source
Added
0.1.6
Inherits AbstractEntity
Public Functions
Output
Method
Instance
.create_instance(str, **kwargs)
4 functions inherited from AbstractEntity
Description
The context encapsulates one or more Instance's along with information about the current execution environment, such as the current user and time of day. Publishing is performed by iterating over the members of a context.
# Psuedo-code
for plugin in plugins:
for instance in context:
plugin.process(instance)Examples
# Creating a context
#
# The context is normally created for you by a user interface or
# through convenience functions, but can be helpful to manually
# create for debugging purposes.
import pyblish.api as pyblish
context = pyblish.Context(){{ file.mtime }}
Last updated
Was this helpful?