Skip to content

Commit

Permalink
Export the instance.data["ornatrix_nodes"] into rigsettings so it's…
Browse files Browse the repository at this point in the history
… also correct for those entries without textures
  • Loading branch information
BigRoy committed Jul 15, 2024
1 parent 33474e4 commit c07653c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/ayon_maya/plugins/publish/extract_ornatrix_rig.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,16 @@ def process(self, instance):
self.log.debug("adding transfer {} -> {}". format(src, dst))

self.log.debug("Writing metadata file: {}".format(settings_path))

# The rigsettings contains a list of {"node": node_path} entries.
settings = []
for node in instance.data["ornatrix_nodes"]:
settings.append({
"node": node
})

with open(settings_path, "w") as fp:
json.dump(resources, fp, ensure_ascii=False)
json.dump(settings, fp, ensure_ascii=False)

texture_attributes = {
resource["texture_attribute"]: resource["destination_file"]
Expand Down

0 comments on commit c07653c

Please sign in to comment.