Skip to content

[BUG] "size" key missing from self.options #485

@SimonBenAnderson

Description

@SimonBenAnderson

🐞 Bug Report

Description

When building a rig using a .sgt file and the build_from_file method, an error occurs.

The error message says the following key "size" does not exist in the self.options, so it causes the collect_build_data to fail.

Steps to Reproduce

Simplest reproduction steps.

  1. Create an Guide with only the EPIC_control_01
  2. Enable World Control
  3. Export the Guide Template file for the guide
  4. build the guide using the newly generated .sgt file
from mgear.shifter import io
io.build_from_file(filePath=r"C:\Users\User\Desktop\mGear_guide_template_test.sgt")

Expected Behavior

No error to occur on build when using the .sgt file, and exposed methods build_from_file

Actual Behavior

The build process proceeds as expected, but doesn't complete without an error. As this error occurs we cannot gaurentee the state of the build is correct

Maya Version

  • Maya Version: 2022
  • OS: Windows 10

mGear Version

  • mGear Version: 5+ ( tried on multiple commits, using latest now and error still occurs)

Error Log Formatting

If an error message appears, please provide the complete log:

# Error: KeyError: file C:\Users\Simon\Documents\maya\modules\scripts\mgear\shifter\__init__.py line 658: 'size' # 

Additional Context

Any other information that might help debug the issue.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

5.0.7

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions