API
1.6
1.6
  • Introduction
  • Plug-in System
  • Data
    • result
    • Events
    • Targets
  • Environment Variables
    • PYBLISHPLUGINPATH
    • PYBLISH_CLIENT_PORT
    • PYBLISH_ALLOW_DUPLICATE_PLUGINS
    • PYBLISH_GUI
    • PYBLISH_EARLY_ADOPTER
    • PYBLISH_STRICT_DATATYPES
  • Ordering
    • CollectorOrder
    • ValidatorOrder
    • ExtractorOrder
    • IntegratorOrder
  • pyblish.util
    • publish
    • collect
    • validate
    • extract
    • integrate
  • pyblish.cli
    • publish
  • pyblish.api
    • AbstractEntity
      • .data
    • Context
      • .append
      • .create_instance
    • Instance
      • .append
      • .context
    • Plugin
      • .hosts
      • .families
      • .label
      • .active
      • .order
      • .optional
      • .requires
      • .actions
      • .version
      • .match
    • ContextPlugin
      • .process
    • InstancePlugin
      • .process
    • Action
      • .process
      • .icon
      • .on
    • Category
    • Separator
    • discover
    • sort
    • register_gui
    • register_host
Powered by GitBook
On this page
  • Introduction
  • Examples

Was this helpful?

  1. pyblish.api
  2. Instance

.append

Append content to an Instance.

Introduction

The content of an Instance is a reflection of the content in the resulting file(s) on disk.

An instance may contain both content and metacontent, added via .append() and .data[] respectively. You can think of the contents of an instance as the bytes for a file, whereas metacontent represents additional information about an instance, such as author and date modified.

When used within a host, the content typically refers to the part of a workspace that is to be published, such as a the physical nodes making up a character model or rig.

Examples

import pyblish.api

instance = pyblish.api.Instance(name="Car")
instance.append("wheels")
instance.append("engine")
instance[:] = ["wheels", "engine"]
instance[0] = "feet"
PreviousInstanceNext.context

Last updated 5 years ago

Was this helpful?