You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Facilitate the inclusion of any host, without needing to alter surrounding libraries.
Motivation
Currently, a few hosts are supported by the core Pyblish library. They are currently hard-coded to look at an executables filename, and only a few are supported. This means that whenever a new host comes along, such as Softimage or Clarisse, the core library must be updated to include them.
Implementation
Integrations will register supported hosts at run-time, and Pyblish will be capable of supporting multiple concurrent hosts; such as maya and python.
This is the full API.
# From the Maya integrationimportpyblish.apipyblish.api.register_host("maya")
As you can see, there is no longer any need for evaluating the executable of the currently running software, instead the host is determined by it's integration. An integration can then register multiple hosts, if needed, where it makes sense to do so, and then have plug-ins operate on individual parts of a software package.
Goal
Facilitate the inclusion of any host, without needing to alter surrounding libraries.
Motivation
Currently, a few hosts are supported by the core Pyblish library. They are currently hard-coded to look at an executables filename, and only a few are supported. This means that whenever a new host comes along, such as Softimage or Clarisse, the core library must be updated to include them.
Implementation
Integrations will register supported hosts at run-time, and Pyblish will be capable of supporting multiple concurrent hosts; such as
maya
andpython
.This is the full API.
As you can see, there is no longer any need for evaluating the executable of the currently running software, instead the host is determined by it's integration. An integration can then register multiple hosts, if needed, where it makes sense to do so, and then have plug-ins operate on individual parts of a software package.
For which plug-ins could support one or more of these.
The executable environment of Pyblish itself will be registered automatically, e.g.
python
.This also means that we need an additional member to the API.
Which returns a list of hosts as string.
current_host()
will remain as-is, and will return the last-registered host.Discussion
See forums.
The text was updated successfully, but these errors were encountered: