hound shut

This commit is contained in:
Kayla Man 2024-01-12 18:44:18 +08:00
parent df7b868371
commit 72848657af
2 changed files with 7 additions and 5 deletions

View file

@ -656,7 +656,9 @@ def has_rgb_channel_in_texture_set(texture_set_name, map_identifier):
colorspace_dict: A dictionary which stores the boolean
value of textures having RGB channels
"""
texture_stack = substance_painter.textureset.Stack.from_name(texture_set_name)
texture_stack = (
substance_painter.textureset.Stack.from_name(texture_set_name)
)
# 2D_View is always True as it exports all texture maps
colorspace_dict = {"2D_View": True}
colorspace_dict["BaseColor"] = texture_stack.get_channel(
@ -686,7 +688,7 @@ def texture_set_filtering(texture_set_same, template):
"""
texture_filter = {}
channel_stack = substance_painter.textureset.Stack.from_name(
texture_set_same)
texture_set_same)
has_emissive = channel_stack.has_channel(
substance_painter.textureset.ChannelType.Emissive)
map_identifier = strip_template(template)

View file

@ -44,9 +44,9 @@ class CollectTextureSet(pyblish.api.InstancePlugin):
if texture_set_filtering(texture_set_name, template):
self.log.info(f"Processing {template}")
self.create_image_instance(instance, template, outputs,
asset_doc=asset_doc,
texture_set_name=texture_set_name,
stack_name=stack_name)
asset_doc=asset_doc,
texture_set_name=texture_set_name,
stack_name=stack_name)
def create_image_instance(self, instance, template, outputs,
asset_doc, texture_set_name, stack_name):