pyblish / pyblish-lite

A community-driven alternative to pyblish-qml
GNU Lesser General Public License v3.0
50 stars 41 forks source link

pyblish-nuke with pyblish-lite and optional plugin #86

Open LegacyID1991 opened 7 years ago

LegacyID1991 commented 7 years ago

First ever Issue Ticket, YAY or Noo depending on who you are.

I have run into this Bug: Running Nuke with pyblish lite gui registed and developing my own plugin this is the setup I used:

Nuke installed in non-default folder on my local C: Pyblish Base undefined with Pyblish Lite version 0.7.1 Pyblish running on start up of Nuke and registering both QML and LITE as GUIs

Created Demo_HelloWorld.py saved into PyblishPluginPath location code:

    # This is a Demo from https://learn.pyblish.com/chapters/01-hello-world.html
    import pyblish.api

    class MyDemoPlugin(pyblish.api.ContextPlugin):
        """This was just a connection test"""
        order = pyblish.api.ValidatorOrder
        optional = True

        def process(self, context):
            self.log.debug("Hello Python!")

Setup done.

How I ran into the bug:

Start Nuke Show pyblish lite gui pyblish lite resets and finishes successfully! Goto Overview tab Find MyDemoPlugin among the plugin and toggle to not run on publish Notice that Validate button and Publish button are grayed out Find MyDemoPlugin among the plugin and toggle to run on publish Notice that Validate button and Publish button stay grayed out

From here you can hit reset button and nothing will change. Once you toggle a plugin to not run then you cant publish. Reset the Show pyblish lite gui and it everything is reset and works okey again til you toggle any plugin to not run on publish.

toerror01toerror02

mottosso commented 7 years ago

Thanks @LegacyID1991, having a look at this asap!

mottosso commented 7 years ago

Leaving this for beginners to solve, this is a good introduction to the code base.