I should also note that Cycles (the path tracing engine) does not support alpha-clip at all currently since that would require a special shader network to clamp the values in the node graph…
The handling of color attributes has changed since 4.0, so some of this behavior is out of date, but COLOR_1 will still never be created. The relevant tickets are actually https://github.com/Khrono…
Okay, this appears to be https://github.com/fmtlib/fmt/issues/3649. As noted there, it is a difference from std.
It formats as 123456790 because this is "shorter" in the sense of having fewer…
Dupe of #103395.
tldr Use _node_mix.outputs[2]
for the Result output socket in Color mode.
I don't have Blender as a Python Module, so I can't try that.
Can't repro for background mode using Blender 3.6/4.1 on Linux. I added
bpy.ops.wm.save_as_mainfile(filepath='test.blend')
to the bottom of my above script, saved it as a.py, and…
The length appears to be 0 only if the object is in edit mode. I get the expected length in object mode. Not sure if this is intentional.
This works for me.
import bpy
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.delete()
bpy.ops.object.select_all(action='DESELECT')
bpy.ops.mesh.primitive_cube_add(size…
Disconnect the Image Texture Alpha <-> Principled Node Alpha link in the Shader Editor.
There's a section about it on the Gotchas page
Help! My script crashes Blender
TL;DR Do not keep…
When you add or remove a color attribute, generally any existing references to color attributes may become junk (pointer is invalidated). Your workaround avoids this problem by holding onto names…
Just looking at [MeshFromGeometry::create_colors](6a9d2212e4/source/blender/io/wavefront_obj/importer/obj_impor
…
Simpler example: Take this OBJ file
v -0.004936 0.000000 1.013093 1.0000 0.4235 0.0000
v 1.995063 0.000000 1.013093 1.0000 0.8470 0.0000
v -0.004936 0.000000 -0.986907 1.0000 0.4235…
Nevermind, I managed to repro. I've attached a Test.obj. If o obj
is inserted on line 796, the vertex colors are broken. If it is inserted on line 797 instead though, it doesn't break.
[Iss117…
Can you attach an OBJ file for testing?