ndee85 / coa_tools

COA Tools is a 2D Animation Suite for blender. It offers a 2D cutout animation workflow similar to programs like spine or spriter.
GNU General Public License v3.0
900 stars 139 forks source link

slot Object not working at render. #192

Open ahrimanes opened 2 years ago

ahrimanes commented 2 years ago

ok I have this working and Im doing some stuff.. but when it comes to slot index to shift betwiin sprites I get an error every time i try to set a keyframe, if I press "i" it works but it only works on play time if I render I only see the index im on when render animation button was pressed..

the error is: Traceback (most recent call last): File "C:\Users\ahrim\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\coa_tools\operators\animation_handling.py", line 132, in invoke self.execute(context) File "C:\Users\ahrim\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\coa_tools\operators\animation_handling.py", line 162, in execute self.create_keyframe(context,event,self.prop_name) File "C:\Users\ahrim\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\coa_tools\operators\animation_handling.py", line 77, in create_keyframe sprite.keyframe_insert(data_path) TypeError: bpy_struct.keyframe_insert() property "coa_slot_index" not found

i did as you said before on other issues,, select all sprites i want to make them slot and press the merge..

it seems my objects have missin properties "coa_slot_index"?? how can i solve it?

im using blender 2.80, and coa tools 2.0.0

ahrimanes commented 2 years ago

i have just double cheked and this issue occurs with the sample file aswell..

SallyElsa commented 2 years ago

Screenshot 2021-12-23 153604

I'm having the same issue, Blender 2.83 and COA tools 2.0.1
I'm not the most tech savy, so I don't really understand how to bypass this error

ahrimanes commented 2 years ago

for what i have seen there is no custom properties defined by Api on the objects.. on blender 2.79 and coa tools 1.0.4 the meshes have lot of custompropertyes defined by api, included this coa_slot_index wich i uinderestan is used to control the active slot on the animation curve. all of those properties are crated as soon as we import the sprites. and coa_slot_index is created when we do the merge thing... there is somthing making the properties not being added.

ahrimanes commented 2 years ago

ok i have searched the string "coa_solt_index" on the 2.0.0 src traing to find the fucntion wich create that property and i just find 2 hits on ui.py while i have 34 hits on 1.0.4.. sooo i guess is an un suporte feature sicen the src is not refering to it out side the ui.py wich creates the ui item.