Let’s consider such situation:
I’ve got some plugins for validating rig, eg. ValidateJointOrients, ValidateNames and ValidateJointsHierarchy. They’re operating on instances with “rig” family.
But after some time the new kind of the rig appeared that do not need the joints hierarchy to be validated (#1). So I’m collecting it as “rig_new_type” and I’m adding this family to families of two other plugins.
Later some newer rig appears and needs all plugins and one more, ValidateState or something (#2) , so I’m creating this new plugin that targets only new family, and adding one more new family to the other tests.
This works, but it does not seem to be a good way, updating families in every plugin that has to be loaded for every new type of publishing.
I know, that the suggested method for managing plugins is to place them in many specific directories and register paths to them when needed (Task specific plugins) so I can register those paths before launching the Pyblish, but I’d just like the user to be able to e.g. open the new scene with different type of rig click refresh in pyblish and publish and while using this option it is not possible.
-The possibility of assigning multiple families to the instance would help with #2 .
-The possibility of activating/deactivating plugins by some other plugin during collection seemed as a workaround that would work with both #1 and #2, that’s why I was asking about it
-To solve #2 I can also create one more instance, create a standard rig and a new rig_new_new instance that would trigger only additional plugin, but:
- It could be disabled by the user and the rig would be published without using plugins that it require
- It would look like two rigs will be published, because there would be two items on the list f instances
- Some system of hierarchy of families would also work, and I do like this idea, like a famil name “rig.new_tech” would mean rig #1. This is simillar to multiple families of an instance in fact
- I can also check the rig type, by a filepath or a attributes of the rig, env, or sth, during execution of those plugins, but it seams like a dirty way and plugins that did nothing would be listed as “green”, passed.
So I’d like to ask what is a proper way to deal with such situations. I’d like to mention, that I’m still reading the documentation, discussions and learning pyblish, so this may be a stupid question