vini-guerrero / godot_game_tools

This is a blender add-on that contains tools to ease the creation/import process of assets into Godot Game Engine
GNU General Public License v2.0
364 stars 34 forks source link

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

Open fenpaws opened 2 years ago

fenpaws commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

same error