mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Address feedback from PR.
This commit is contained in:
parent
1b109d761f
commit
fd63c97f4e
2 changed files with 2 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue