pyblish / pyblish-base

Pyblish base library - see https://github.com/pyblish/pyblish for details.
Other
123 stars 60 forks source link

update Plugin and Action in plugin.py #388

Open kosam0913 opened 2 years ago

kosam0913 commented 2 years ago

Goal: to let developing pyblish plugin be more developer friendly (sort of) Motivation: same as above~

Modifications:

  1. add context and instance as class Plugin's attributes (not only a arguments)
  2. append repair and other customize method into Plugin.actions during instantiation
  3. add context and instance as class Action's attribute (for further data transfer)
mottosso commented 2 years ago

Thanks for this @kosam0913, welcome to Pyblish. :)

The most important aspect of developing for Pyblish is to maintain backwards compatibility, so have a look at what AppVeyor is complaining about first of all.

Second would you be able to provide some examples of what your changes would mean? Some usage examples, along with some of the problem this addition solves. What problem should a developer be having to benefit from this change?