Skip to content

Instantly share code, notes, and snippets.

@mottosso
Created October 22, 2014 07:43
Show Gist options
  • Select an option

  • Save mottosso/efac55f7b743c90f144e to your computer and use it in GitHub Desktop.

Select an option

Save mottosso/efac55f7b743c90f144e to your computer and use it in GitHub Desktop.
Modo Pyblish
#python
import pyblish.api
pyblish.api.register_plugin_path(r"C:\plugins")
import pyblish.main
pyblish.main.publish()
Scripts Wed Oct 22 08:41:32 2014 Info C:\Users\marcus\Desktop\script.py
Wed Oct 22 08:41:32 2014 Info
Wed Oct 22 08:41:33 2014 Info
--------------------------------------------------------------------------------
pyblish version 1.0.10
--------------------------------------------------------------------------------
User Configuration @ None
Available plugin paths:
- C:\plugins
- C:\Python27\Lib\site-packages\pyblish\plugins
Available plugins:
- SelectAll
- SelectCurrentDate
- SelectCurrentUser
- SelectCurrentWorkingDirectory
- ValidateNamingConvention demo.model
--------------------------------------------------------------------------------
Processing
Wed Oct 22 08:41:33 2014 Info
Wed Oct 22 08:41:33 2014 Info SelectAll...
Wed Oct 22 08:41:33 2014 Info
Wed Oct 22 08:41:33 2014 Info INFO logged message
Wed Oct 22 08:41:33 2014 Info SelectCurrentDate...
Wed Oct 22 08:41:33 2014 Info
Wed Oct 22 08:41:33 2014 Info SelectCurrentWorkingDirectory...
Wed Oct 22 08:41:33 2014 Info
Wed Oct 22 08:41:33 2014 Info SelectCurrentUser...
Wed Oct 22 08:41:33 2014 Info
Wed Oct 22 08:41:33 2014 Info WARNING Cancelled due to not finding any instances
Wed Oct 22 08:41:33 2014 Info
Wed Oct 22 08:41:33 2014 Info --------------------------------------------------------------------------------
Wed Oct 22 08:41:33 2014 Info
Wed Oct 22 08:41:33 2014 Info Time taken: 0.00
Wed Oct 22 08:41:33 2014 Info
Wed Oct 22 08:41:33 2014 Info No handlers could be found for logger "root"
import pyblish.api
@pyblish.api.log
class SelectAll(pyblish.api.Selector):
hosts = ["modo"]
def process_context(self, context):
self.log.info("logged message")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment