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
885 stars 138 forks source link

Blender 2.9 #172

Open Alekzs89 opened 3 years ago

Alekzs89 commented 3 years ago

Upgrade to 2.8x is required.

Is there a solution to this or i need to downgrade?

Thank you.

davord45 commented 3 years ago

Have you tried blender28 branch?

kreezii commented 3 years ago

#176 If you are going to export to DragonBones I made a pull request to work with Blender 2.9. Meanwhile there is a fork in my repositories you can use.

notsosimpleton commented 3 years ago

Just curious if anyone has figured out how to make this work with 2.9? Or are we just waiting for it to be updated?

Lertsenem commented 3 years ago

Waiting for the update. Meanwhile I'm using Blender 2.83 LTS.

magdesign commented 3 years ago

@kreezii : Thanks for your fork, just tried it on Blender 2.91 on Ubuntu Linux. Unfortunately after importing a sprite and clicking "Edit Armature" I get following error:


  File "/home/magdesign/.config/blender/2.91/scripts/addons/coa_tools/operators/edit_armature.py", line 152, in project_cursor
    ray = bpy.context.scene.ray_cast(bpy.context.view_layer, start, (start+(end-start)*2000)-start )
TypeError: Scene.ray_cast(): error with argument 1, "depsgraph" -  Function.depsgraph expected a Depsgraph type, not ViewLayer
Error: An Error occured, please check the console for more information
kreezii commented 3 years ago

@magdesign : It seems It breaks on every release... I updated it and trying it with Blender 2.91 seems to work fine now. Here is the new release, please let me know if everything is working well for you too.

KolaiUA commented 3 years ago

Thanks for the update for 2.91, man! Everything works! But the negative bone scale does not work. Do you know how to fix it?

davord45 commented 3 years ago

Thanks @kreezii you are awesome!

magdesign commented 3 years ago

@kreezii : thanks for your effort, works here again :-)

3dcinetv commented 3 years ago

I'm getting this error when I try to edit the mesh (sprite) in 2.92 and 2.91: Tool 'coa_tools.draw_polygon' not found for space 'VIEW_3D'. 101

davord45 commented 3 years ago

@sirdavid32 Did you try @kreezii pull request for Blender 2.9?

3dcinetv commented 3 years ago

Thank you for your reply and the heads up. I downloaded it and installed it on 2.92. I get this error when I import a sprite: Python: Traceback (most recent call last): File "C:\Users\3DCompositor\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\coa_toolsaddon\operators\import_sprites.py", line 429, in execute bpy.ops.coa_tools.reimport_sprite(filepath=filepath,name=i.name, reposition=False) File "E:\Program Files\Blender 2.92\2.92\scripts\modules\bpy\ops.py", line 132, in call ret = _op_call(self.idname_py(), None, kw) RuntimeError: Error: Python: Traceback (most recent call last): File "C:\Users\3DCompositor\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\coa_toolsaddon\operators\import_sprites.py", line 541, in execute self.move_verts(obj, ratio_x, ratio_y) File "C:\Users\3DCompositor\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\coa_toolsaddon\operators\import_sprites.py", line 468, in move_verts bpy.ops.object.mode_set(mode="EDIT") File "E:\Program Files\Blender 2.92\2.92\scripts\modules\bpy\ops.py", line 132, in call ret = _op_call(self.idname_py(), None, kw) RuntimeError: Operator bpy.ops.object.mode_set.poll() failed, context is incorrect

location: E:\Program Files\Blender 2.92\2.92\scripts\modules\bpy\ops.py:132

location: :-1

In Blender 2.91 it works, but when I finish editing with the Edit Mesh tools, I get this message still: Tool 'coa_tools.draw_polygon' not found for space 'VIEW_3D'.

ndee85 commented 2 years ago

Hey guys, Could someone post a blend file that does not work. Tested yesterday with 2.93.3 and it worked fine for me. Will try to fix that issue.

magdesign commented 2 years ago

here the blender file: https://mega.nz/file/Rjp21JoA#SDKji8SP7nJ2hjjPZrdAemKSkeO__EP_30JRngwIrsI

Ubuntu 18.04 LTS Blender 2.93.3 CoaTools coa_tools-2.0.0 from here

What I did:

1.) Installed Coa-tools as described in the readme.md 2.) COA Tools Panel: 2D View 3.) COA Tools Panel: Create new Sprite Object 4.) COA Tools Panel: Re / Import Sprites 5.) Select my .png to import 6.) COA Tools Panel: Edit Armature 7.) Following error occurs:

edit_sprite

btw. when clicking in COA Tools Panel: Edit Mesh I get in edit mode, but as soon as I move the mouse pointer the edit mode is gone.

btw2. when trying coa-tools fork from here, install fails with:

install_fork

Thank you very much for looking into this!