Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UV smart_project error in Blender 2.91

See original GitHub issue

Blender 2.91 seems to have a few changes in the API.


There’s a minor error in the smart_project function.

The smart_project in Blender 2.83 has the parameter named as user_area_weight.

The parameter has been switched to area_weight in smart_project in Blender 2.91

I think the renaming is causing this issue. Reporting it here so that it can be looked into while porting the exporter for Blender 2.9x

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

Palmer-JCcommented, Dec 7, 2020

My experience with the very long 2.80 dev cycle was API would change over and over. Now with Blender in a 4 release LTS cycle (0, 1, 2, 3) or (2.90, 2.91, 2.92, 2.93) I do not have the time to keep up.

I run 2.83 LTS. When 2.92 hits, March 2021, I will probably see what is what. Even then, I will not do it on the master branch,

On Sun, Dec 6, 2020 at 8:41 AM Arvind R wrote:

Surprisingly, the error has changed! It’s showing this now:

Python: Traceback (most recent call last):

File “/home/arvind/.config/blender/2.91/scripts/addons/babylon_js/”, line 65, in execute

exporter.execute(context, self.filepath)

File “/home/arvind/.config/blender/2.91/scripts/addons/babylon_js/”, line 115, in execute

mesh = Mesh(object, scene, self)

File “/home/arvind/.config/blender/2.91/scripts/addons/babylon_js/”, line 146, in init

recipe = BakingRecipe(bpyMesh, exporter)

File “/home/arvind/.config/blender/2.91/scripts/addons/babylon_js/materials/”, line 105, in init

self.bakedMaterial.bake(bpyMesh, self)

File “/home/arvind/.config/blender/2.91/scripts/addons/babylon_js/materials/”, line 136, in bake = True

AttributeError: ‘NoneType’ object has no attribute ‘active’

location: <unknown location>:-1

I’m stuck fixing errors recursively 😭 I guess I’ll downgrade to 2.8x for now.

On a side note, thanks for this amazing addon. Any plans to port it to Blender 2.9x? I’ll be happy to help if needed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe .

Palmer-JCcommented, May 25, 2021

complete in 2.93 exporter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python API: Smart UV Project not working correctly in 2.91 ...
Short description of error. When calling bpy.ops.uv.smart_project(angle_limit=66, island_margin=0) via python, the actual operation sets the ...
Read more >
Export of simple blender material failing - Babylon.js Forum
Blender 2.91 seems to have a few changes in the API. There's a minor error in the smart_project function. The smart_project in Blender....
Read more >
What Did I Do Wrong? Blender fix for UV Mapping Error
I created this tutorial to show you what you did wrong with your Blender file.
Read more >
UV mapping error using project from view - Blender Artists
Followed Andrew Price's camera mapping tutorial, got stuck projecting from view. Doesn't matter how many times I subdivide, it just doesn't want to...
Read more >
Smart UV project not working? :: Blender General Discussions
So now I've got one issue after doing the smart project. My UV grid is looking more like rectangles on the object than...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found