Skip to content

Commit

Permalink
export only selected texture sets
Browse files Browse the repository at this point in the history
  • Loading branch information
moonyuet committed Nov 26, 2024
1 parent 7aff6aa commit be40eb2
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,11 @@ def get_export_config(self, instance):

# Create the list of Texture Sets to export.
export_texture_sets = creator_attrs.get("exportTextureSets", [])
if not export_texture_sets:
export_texture_sets = [
texture_set.name() for texture_set in
substance_painter.textureset.all_texture_sets()
if export_texture_sets:
config["exportList"] = [
{"rootPath": texture_set_name}
for texture_set_name in export_texture_sets
]
config["exportList"] = [
{"rootPath": texture_set_name}
for texture_set_name in export_texture_sets
]

# Consider None values from the creator attributes optionals
for override in config["exportParameters"]:
Expand Down

0 comments on commit be40eb2

Please sign in to comment.