animate1978 / MB-Lab

MB-Lab is a character creation tool for Blender 4.0 and above, based off ManuelBastioniLAB
Other
1.76k stars 308 forks source link

Finalize not working in Blender 2.9.1 #311

Closed mannojkumarr closed 3 years ago

mannojkumarr commented 3 years ago

File "C:\Users\manno\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\MB-Lab__init.py", line 1703, in execute mblab_humanoid.set_rest_pose() File "C:\Users\manno\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\MB-Lab\humanoid.py", line 1266, in set_rest_pose self.sk_engine.apply_armature_modifier() File "C:\Users\manno\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\MB-Lab\skeletonengine.py", line 119, in apply_armature_modifier algorithms.apply_modifier(obj, armature_modifier) File "C:\Users\manno\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\MB-Lab\algorithms.py", line 1069, in apply_modifier bpy.ops.object.modifier_apply(apply_as='DATA', modifier=modifier_name) File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\bpy\ops.py", line 132, in call__ ret = _op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: : keyword "apply_as" unrecognized location: :-1

mannojkumarr commented 3 years ago

I Found the solution just edit You can fix this locally by editing your algorithms.py file to use the new modifier_apply method until it is officially fixed and merged to support 2.9. Your file is located here C:\Users\jeffl\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MB-Lab-master\algorithms.py. You will need to restart blender after the edit.

https://github.com/animate1978/MB-Lab/pull/306/commits/223bf9daaf1885f2e73ae461b3572bb2b4ed4d0e

aniruddhahar commented 3 years ago

Thanks for this fix. Here are some more details in case anyone is looking for what exactly to change. Open algorithms.py located here: %AppData%\Roaming\Blender Foundation\Blender\2.90\scriptts\addon\MB-Lab\algorithms.py

Find this line, in the apply_modifier method definition: bpy.ops.object.modifier_apply(apply_as='DATA', modifier=modifier_name)

change it to: bpy.ops.object.modifier_apply(modifier=modifier_name)

And this should get finalize working again. Restart blender if it's open.

I Found the solution just edit You can fix this locally by editing your algorithms.py file to use the new modifier_apply method until it is officially fixed and merged to support 2.9. Your file is located here C:\Users\jeffl\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MB-Lab-master\algorithms.py. You will need to restart blender after the edit.

223bf9d

animate1978 commented 3 years ago

The recent pull requests to 'master' should resolve this issue

DakotaRUS commented 3 years ago

Thanks for this fix. Here are some more details in case anyone is looking for what exactly to change. Open algorithms.py located here: %AppData%\Roaming\Blender Foundation\Blender\2.90\scriptts\addon\MB-Lab\algorithms.py

Find this line, in the apply_modifier method definition: bpy.ops.object.modifier_apply(apply_as='DATA', modifier=modifier_name)

change it to: bpy.ops.object.modifier_apply(modifier=modifier_name)

And this should get finalize working again. Restart blender if it's open.

I Found the solution just edit You can fix this locally by editing your algorithms.py file to use the new modifier_apply method until it is officially fixed and merged to support 2.9. Your file is located here C:\Users\jeffl\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MB-Lab-master\algorithms.py. You will need to restart blender after the edit. 223bf9d

Thx, it helped

ajithveee commented 2 years ago

Thanks for this fix. Here are some more details in case anyone is looking for what exactly to change. Open algorithms.py located here: %AppData%\Roaming\Blender Foundation\Blender\2.90\scriptts\addon\MB-Lab\algorithms.py

Find this line, in the apply_modifier method definition: bpy.ops.object.modifier_apply(apply_as='DATA', modifier=modifier_name)

change it to: bpy.ops.object.modifier_apply(modifier=modifier_name)

And this should get finalize working again. Restart blender if it's open.

I Found the solution just edit You can fix this locally by editing your algorithms.py file to use the new modifier_apply method until it is officially fixed and merged to support 2.9. Your file is located here C:\Users\jeffl\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MB-Lab-master\algorithms.py. You will need to restart blender after the edit. 223bf9d

Thanks Worked for Blender 3.0

SyphoneHub commented 2 years ago

Hi, I was wondering how do I get to the python file, like where do I put in the: %AppData%\Roaming\Blender Foundation\Blender\2.90\scriptts\addon\MB-Lab\algorithms.py ? I haven't coded anything in blender before and I've looked for videos but the closest they got was just showing the file, not how to search for it, if you could help that'd be great.

ldo commented 2 years ago

Normally you don’t go putting in files by hand, particularly if you don’t know what you’re doing!

Download the complete .zip file from the releases page, and follow the usual instructions for installing.

SyphoneHub commented 2 years ago

well I mean can you just explain the process of how you got to the point of editing it, like what you open to put the %AppData%\Roaming\Blender Foundation\Blender\2.90\scriptts\addon\MB-Lab\algorithms.py Thats what I mean if that's any clearer

SyphoneHub commented 2 years ago

ok i figured it out, but when i went into addon i dont see mb-lab, using 3.0 btw

enamnoeki commented 1 year ago

Thank you. This helped me