Open mottosso opened 9 years ago
We may need the ability to run pyblish from the desktop, without using a DCC app. So what is up with this issue?
This issue is about a user interface for publishing standalone; you can still publish standalone without this interface, as Pyblish is a plain Python library.
from pyblish import util
util.publish()
Alternatively, there is a command-line interface.
$ python -m pyblish publish
Goal
Facilitate publishing of arbitrary data.
Today, we've got a number of integrations available for parsing and validating data directly from a piece of software; such as Autodesk Maya and The Foundry Nuke. What about software with less of an ability to provide for integrations - such as Adobe Illustrator? And what about data that doesn't necessarily come from a single software, but rather a collection - such as a texture and 3d model?
Standalone publishing provides a means of publishing anything and to parse any arbitrary data accessible via Python.
Implementation
Given an absolute path, treat contents of directory as data to be published. The data may be Autodesk Maya scene-files, in which case validators and extractors may turn to
mayapy
in order to interact with them. It may also be in the form of text files, images or data from any arbitrary software, such as Adobe Photoshop or Pixologic Zbrush.Plug-ins then make use of whatever interface is available towards these formats, such as
mayapy
for binary files written by Autodesk Maya or thePIL
Python library for reading and parsing images.Example workflow
Example 1 - Publish Image Failure
png
PIL
Python library to parse and inspect imagesExample 2 - Publish Image Success
png
PIL
Python library to parse and inspect images