tuxedo-blender-plugin icon indicating copy to clipboard operation
tuxedo-blender-plugin copied to clipboard

blender 4.1

Open noideaman opened this issue 1 year ago • 6 comments

4.1 update changed something with python, smart-decimate now fails


Python: Traceback (most recent call last):
  File "/home/noideaman/.config/blender/4.1/scripts/addons/tuxedo-blender-plugin-master/tools.py", line 515, in execute
    join_meshes(context, armature.name)
  File "/home/noideaman/.config/blender/4.1/scripts/addons/tuxedo-blender-plugin-master/tools.py", line 304, in join_meshes
    bpy.ops.object.select_all(action='DESELECT')
  File "/usr/share/blender/4.1/scripts/modules/bpy/ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Operator bpy.ops.object.select_all.poll() failed, context is incorrect

noideaman avatar Jun 06 '24 15:06 noideaman

not sure if this has been fixed whatsoever. I'm doubtful though. @feilen do you think this could be fixed? seems simple enough

989onan avatar Aug 16 '24 15:08 989onan

It is in a broken working state, it decimates but it does not take the value given image no matter the option i pick it will always be sub 10k

noideaman avatar Nov 24 '24 22:11 noideaman

I know the issue of this now. I need to get around to this

Basically I made a change for Garry's mod that enforces a 10000 polygons per mesh due to a pure binary limitation of the file format (Meaning it it utterly fixed point. Trying to go further literally causes a catastrophic crash in Gmod)

So to mitigate this i added an option to the tool which I call that makes it 10000 limit and it works

Unfortunately this kinda spread to other parts of the program and now the smart decimate is affected by this

Thankfully, a temporary work around for this issue is to go to the bottom right after hitting the button where blender shows the most recently used operator settings, finding the per mesh limit (10000) and setting it to a bunch of 99999999999 or something

It does this for every operator btw, including bridging mesh loops and what not. If you have trouble finding it, I am happy to help through discord, although a quick AI asking or Google may help

989onan avatar Dec 30 '24 17:12 989onan

Dang, wonder how that snuck in. Was that in the patch release?

I was gonna spend some break time cleaning this up and putting out a patch release, but I got sick over the holiday ;-; we'll see!

feilen avatar Dec 31 '24 01:12 feilen

It may be a couple months till I can get to this, since I don't have access to writing code

989onan avatar Jan 02 '25 15:01 989onan

Maybe as a quick patch job, setting the number to 1 million (1000000)

jksessions avatar Apr 28 '25 23:04 jksessions