niacdoial / blemd

BMD importer for blender (BDL format also partially supported)
GNU General Public License v3.0
32 stars 13 forks source link

Error popping up in coding, according to Blender #55

Open zmand97a opened 2 years ago

zmand97a commented 2 years ago

I'm trying to fix an error that Blender says is on line 103 in init.py since the traceback error is preventing me from using blemd, but i don't know how to fix it. I'm attaching a picture of the code sample and the error message to this post; the latter is the message from Blender. Is there a way to fix this or a particular method?

Screen Shot 2022-03-18 at 1 50 04 PM Screen Shot 2022-03-18 at 1 31 27 PM
niacdoial commented 2 years ago

Are you using blender 2.79? Sorry, I changed what blender version needed to be used somewhat recently, and now you need at least blender 2.8x (I tested it on 2.83 and blender 3.0). Did I leave something misleading in the docs ?

If using blender 2.79 was something you chose yourself, you'll have to use the version of BleMD at commit 130ad913f66836a6878980ec2d86e545a7da9067.

zmand97a commented 2 years ago

I tried using different versions of blender. What I eventually tried doing in one of my attempts was to try replacing some of the syntaxes in the init.py file.

niacdoial commented 2 years ago

… and did you get different error messages with blender 2.83 and an unmodified __init__.py file ?

The big difference between the 2.7x and 2.8x version series is that blender 2.7x versions want the property = PropertyType(…) syntax, while the 2.8x versions and above want property: PropertryType(…) instead. But that's far from the only change in blender's API, so you'll need to use a version of BleMD that is designed to work with the version of blender you are using.