Skip to content

Raise error if FCurve param def is missing get_divisions#638

Open
timothyliu3d wants to merge 1 commit into
mgear-dev:masterfrom
timothyliu3d:better-errmsg-for-get_divisions
Open

Raise error if FCurve param def is missing get_divisions#638
timothyliu3d wants to merge 1 commit into
mgear-dev:masterfrom
timothyliu3d:better-errmsg-for-get_divisions

Conversation

@timothyliu3d

Copy link
Copy Markdown
Contributor

Description of Changes

Update ComponentGuide.get_divisions to raise a NotImplementedError with a clearer error message.
This happens when a component has an FCurve param def, but does not implement get_divisions.

Compared to the current behavior, which is a generic error message (TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'), this better points towards the source of the problem.

Want to also point out: get_divisions is only called in the shifter.guide base class, but not implemented, while it is only implemented in the shifter.component.guide subclass, but never called, adding to the unclarity when tracing through.

Testing Done

Maya 2027
mGear 5.3.3

Able to successfully build "EPIC_mannequin_y_up" template.

Related Issue(s)

N/A

…has not implemented its `get_divisions` method
@miquelcampos

Copy link
Copy Markdown
Member

Hi @timothyliu3d Thanks for the PR. I will check it ASAP

@miquelcampos miquelcampos self-assigned this Jun 30, 2026
@miquelcampos miquelcampos added bug Something isn't working enhancement New feature or request labels Jun 30, 2026
@github-project-automation github-project-automation Bot moved this to To Do in mGear DEV Jun 30, 2026
@miquelcampos miquelcampos moved this from To Do to WIP in mGear DEV Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: WIP

Development

Successfully merging this pull request may close these issues.

2 participants