Address feedback from PR.

This commit is contained in:
robin@ynput.io 2025-01-29 19:56:34 +01:00
parent 1b109d761f
commit fd63c97f4e
2 changed files with 2 additions and 30 deletions

View file

@ -463,12 +463,7 @@ def filter_pyblish_plugins(plugins):
# Pyblish already operated a filter based on host.
# But applying settings might have changed "hosts"
# value in plugin so re-filter.
plugin_hosts = getattr(plugin, "hosts", None)
if (
plugin_hosts
and "*" not in plugin_hosts
and host_name not in plugin_hosts
):
if not pyblish.plugin.host_is_compatible(plugin):
plugins.remove(plugin)
# Remove disabled plugins

View file

@ -14,23 +14,7 @@ class CollectSceneVersion(pyblish.api.ContextPlugin):
order = pyblish.api.CollectorOrder
label = 'Collect Scene Version'
# configurable in Settings
hosts = [
"aftereffects",
"blender",
"celaction",
"fusion",
"harmony",
"hiero",
"houdini",
"maya",
"max",
"nuke",
"photoshop",
"resolve",
"tvpaint",
"motionbuilder",
"substancepainter"
]
hosts = ["*"]
# in some cases of headless publishing (for example webpublisher using PS)
# you want to ignore version from name and let integrate use next version
@ -46,13 +30,6 @@ class CollectSceneVersion(pyblish.api.ContextPlugin):
self.log.debug("Skipping for headless publishing")
return
if context.data["hostName"] not in self.hosts:
self.log.debug(
f"Host {context.data['hostName']} is"
" not setup for collecting scene version."
)
return
if not context.data.get('currentFile'):
self.log.error("Cannot get current workfile path. "
"Make sure your scene is saved.")