cc_blender_tools icon indicating copy to clipboard operation
cc_blender_tools copied to clipboard

Blender 4.0 beta armature layer compatability issue (w/ temporarly solution)

Open evokra opened this issue 1 year ago • 2 comments

Curret 1.6.0.4 version of addon is unusable in blender 4.0 beta when it comes to armature generation (i.e. import character, quick rigify characer).

When importing character: File "C:\Users\USERNAME\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\cc_blender_tools-1_6_0_4\bones.py", line 573, in store_armature_settings layers.append(rig.data.layers[i]) AttributeError: 'Armature' object has no attribute 'layers'

When attempting to rigify character: File "C:\Users\USERNAME\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\cc_blender_tools-1_6_0_4\bones.py", line 573, in store_armature_settings layers.append(rig.data.layers[i]) AttributeError: 'Armature' object has no attribute 'layers'

I believe this is due to the update of armature layer feature in blender 4.0, as shown in the screenshots below.

3.6 layer UI: image 4.0 beta layer UI: image

Would appreciate if this inconvenience can be addressed, thanks.

evokra avatar Oct 09 '23 10:10 evokra

Temporarly solution is to import/rigify the charater in 3.6 and open it in 4.0 beta.

evokra avatar Oct 09 '23 10:10 evokra

I've encountered a similar issue which may be related to this in trying to import a character into Blender v4 with the following error messages received. I have raised as a support ticket.

The character and motion uploads do appear in Blender, but when I try to use the Rigimap add-on (I'm new to this so was trying it for the first time yesterday), it is telling me there is no Rigify armiture available.

I'm assuming it's due to this importer failing? If anyone can spot a different problem, or has successfully imported, that'd be great.

This was a test of the two free to download ActorCore characters and some free to download motions. If anyone has successfully imported the party-male0001 or party-female0001 characters into Blender4 and managed to map a motion to the character, it'd be good to hear from you!

Thanks.

--

bpy.ops.cc3.importer(filepath="/Users/USERNAME/Documents/Blender add-ins/ActorCore downloads/Actors/party-f-0001/party-f-0001.fbx", param="IMPORT_QUALITY") Python: Traceback (most recent call last): File "/Users/USERNAME/Library/Application Support/Blender/4.0/scripts/addons/cc_blender_tools-1_6_0_4/importer.py", line 1059, in modal self.run_finish(context) File "/Users/USERNAME/Library/Application Support/Blender/4.0/scripts/addons/cc_blender_tools-1_6_0_4/importer.py", line 1019, in run_finish bpy.ops.cc3.rigifier(param="ALL") File "/Applications/Blender.app/Contents/Resources/4.0/scripts/modules/bpy/ops.py", line 109, in call ret = _op_call(self.idname_py(), kw) RuntimeError: Error: Python: Traceback (most recent call last): File "/Users/USERNAME/Library/Application Support/Blender/4.0/scripts/addons/cc_blender_tools-1_6_0_4/rigging.py", line 3645, in execute self.generate_meta_rig(chr_cache) File "/Users/USERNAME/Library/Application Support/Blender/4.0/scripts/addons/cc_blender_tools-1_6_0_4/rigging.py", line 3485, in generate_meta_rig self.add_meta_rig(chr_cache) File "/Users/USERNAME/Library/Application Support/Blender/4.0/scripts/addons/cc_blender_tools-1_6_0_4/rigging.py", line 3445, in add_meta_rig match_meta_rig(chr_cache, self.cc3_rig, self.meta_rig, self.rigify_data) File "/Users/USERNAME/Library/Application Support/Blender/4.0/scripts/addons/cc_blender_tools-1_6_0_4/rigging.py", line 1119, in match_meta_rig hide_face_bones(meta_rig) File "/Users/USERNAME/Library/Application Support/Blender/4.0/scripts/addons/cc_blender_tools-1_6_0_4/rigging.py", line 1166, in hide_face_bones bone.layers[0] = False AttributeError: 'EditBone' object has no attribute 'layers' Location: /Applications/Blender.app/Contents/Resources/4.0/scripts/modules/bpy/ops.py:109

priceperrott avatar Nov 27 '23 22:11 priceperrott