Skip to content

NameError: name 'cursor' is not defined #64

@Flynsarmy

Description

@Flynsarmy

Blender 4.2.2 LTS, Capsule 1.4.2.

When attempting to export a mesh I get the following error:
File "C:\path\to\Capsule\tk_utils\record.py", line 357, in MuteArmatureConstraints
object_transform.MoveBone(item, bone, context, entry['true_location'])
File "C:\path\to\Capsule\tk_utils\object_transform.py", line 195, in MoveBone
location_diff = copy_location - cursor.location
^^^^^^
NameError: name 'cursor' is not defined

Indeed upon loading the file in Visual Studio Code, I can see cursor isn't defined.

Looks like cursor.location just needs to be renamed to cursor_loc defined a few lines above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions