Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Root Bone error location: <unknown location>:-1 #48

Open
fenpaws opened this issue Sep 17, 2021 · 3 comments
Open

Generate Root Bone error location: <unknown location>:-1 #48

fenpaws opened this issue Sep 17, 2021 · 3 comments

Comments

@fenpaws
Copy link

fenpaws commented Sep 17, 2021

After i try to get get a Root Bone I get that error, what exactly is the issue?

Python: Traceback (most recent call last):
  File "/Users/soxx/Library/Application Support/Blender/2.93/scripts/addons/src/operators/rootmotion_controller.py", line 322, in execute
    fCurveBone = channel.data_path.split('"')[1]
IndexError: list index out of range

location: <unknown location>:-1

grafik

animation

When i look into the ARmature i can see the root bone but is a strange direction, and after i import that into Godot and set everything up to use the root bone it just played the animation normally without the correction from the engine.

grafik

grafik

@fenpaws
Copy link
Author

fenpaws commented Sep 25, 2021

Also here is the log, i added the !!!Channel:: so I would get what's inside the channel.data_path. It seems that Blender only returns location as a normal string, so your next steps fail because of that.

Import finished.
Info: Character Bones Successfully Renamed
Info: Rig Armature Prepared
Info: Root Bone Added
!!!Channel: location is a <class 'str'>
Python: Traceback (most recent call last):
  File "C:\Users\SoXX\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\src\operators\rootmotion_controller.py", line 323, in execute
    fCurveBone = channel.data_path.split('"')[1]
IndexError: list index out of range

location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
  File "C:\Users\SoXX\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\src\operators\rootmotion_controller.py", line 323, in execute
    fCurveBone = channel.data_path.split('"')[1]
IndexError: list index out of range

location: <unknown location>:-1

@fenpaws
Copy link
Author

fenpaws commented Oct 4, 2021

So It happens because I use my own rig that I made, Mixamo doesn't have a problem with it but it seems that your Addon has. Is there a way to fix that?

@phaitonican
Copy link

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants