Created
October 22, 2014 07:43
-
-
Save mottosso/efac55f7b743c90f144e to your computer and use it in GitHub Desktop.
Modo Pyblish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #python | |
| import pyblish.api | |
| pyblish.api.register_plugin_path(r"C:\plugins") | |
| import pyblish.main | |
| pyblish.main.publish() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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