Comment by Gorgious on Using python to get data from another blend file
You'll need to open each file individually and tweak the scene data there
View ArticleComment by Gorgious on A comprehensive list of operator overrides
@p2or Nice ! Yeah go for it :)
View ArticleComment by Gorgious on How to render like a technical drawing
I think the line art modifier or freetsyle rendering should do it, but it really depends on your end goal.
View ArticleComment by Gorgious on Modifiers resetting amount / segments value
Hello ! Are you using keyframes for these values ? (Are they animated ?)
View ArticleComment by Gorgious on Geometry Nodes: How to Read Last Digit of a Big Integer?
I think the repeat zone is not meant to be run hundreds of millions of times on update, you're surely hitting a limit there. Maybe you can do something really dumb and take a string as input, and...
View ArticleComment by Gorgious on Aligning two objects to create a fit score
You should look into CloudCompare which has alignment features (it's open source)
View ArticleComment by Gorgious on is there a way to fade image cards where they interact...
Hello ! Should be doable in the shader with an ambient occlusion node and a noise texture. Make sure the flame cards do not cause ambient occlusion themselves
View ArticleComment by Gorgious on How can I create a custom property set for the objects...
Hello, so what is your goal exactly ? Could you elaborate on that ? Otherwise we can't help you
View ArticleComment by Gorgious on How can I execute an operator only when it is...
You can't add pointer properties to operator properties. You'll have to either fill in your callback as a string and exec it (really, really ugly don't do that) eg callback="print('my callback')" and...
View ArticleComment by Gorgious on update callback for CollectionProperty item, propagate...
you can get the collection the item is from with self.id_data.nodes_list.collection in the callback
View ArticleComment by Gorgious on Class already registered as subclass?
@HarryMcKenzie It means a class is registered twice. It might be a name collision from another addon, or something else. Are you using the autoload file from Jacques Lucke ?
View ArticleAnswer by Gorgious for How do I get the selected Assets in the Asset Browser...
Blender 4.0+Blender 4.0 introduces bpy.types.AssetRepresentation, bpy.context.selected_assets, bpy.context.asset we can use to our advantage.import bpyclass PrintSelectedAssets(bpy.types.Operator):...
View ArticleAnswer by Gorgious for How can I reset a Grease Pencil object's vertex colors?
I'll expand on the other answer and suggest another solution.In version 2.92 and beyond the vertex paint operators are available for grease pencil objects. It was not the case before because it was...
View ArticleAnswer by Gorgious for Get Point Coordinates generated with Geometry Nodes?
This is a workaround and I hope there is (or will eventually be) an easier way to access point cloud data in the API.In your GN tree add an Instance on Points node, plug in a Mesh Line or a Points node...
View ArticleAnswer by Gorgious for Restore selection after running script
IMO classic XY problem, it's solved with a one-liner and batch_remove : bpy.data.batch_remove([o for o in bpy.data.objects if o.type == "MESH"] + list(bpy.data.meshes)), no need to mess with selection...
View ArticleAnswer by Gorgious for How can I add custom section panel to the Texture...
This is a special properties editor, it is drawn both in the 3D viewport and in the Tool properties editor. So you need to register it in the 3D viewport space. You can choose to only display it when...
View ArticleAnswer by Gorgious for How to get Geometry nodes modifier inputs and its type...
The syntax has changed since version 4.0. I suggest monkey-patching bpy.types.GeometryNodeTree so you can use previous scripts as is.def register(): @property def inputs(tree): return [ s for s in...
View ArticleAnswer by Gorgious for Manually setting custom attributes per edge / vertex /...
To iterate on the other answer, you can access and edit attributes in edit mode, but you have to use the Bmesh API. One caveat is you can't use foreach_set and foreach_get so this might be slow on...
View ArticleAnswer by Gorgious for Looking to have a property equal 0 unless another...
You can use get, set and update callbacks.import bpydef set_value_c(self, value): self["value_c"] = value if self.value_a and self.value_b else Falsedef get_value_c(self): return self["value_c"]def...
View ArticleAnswer by Gorgious for Joining objects with bpy.ops.object.join doesn't...
I think it's caused by selection state not being reset after each iteration. You select objects but don't unselect the previous ones. So the last empty children get joined with the previous ones.You...
View Article
More Pages to Explore .....