Skip to main content

All Questions

Tagged with
2 votes
0 answers
16 views

Check if viewer node is on or off

Is it possible to check with python if a viewer node is on or off? So this: vs: I tried hide, active and ...
clankill3r's user avatar
  • 1,233
1 vote
1 answer
131 views

Blender 4.1 AttributeError: 'ShaderNodeTree' object has no attribute 'output' [duplicate]

I am using Lucas Roedel's pixel art addon. (https://lucasroedel.gumroad.com/l/pixel_art) I am encountering a problem that says: AttributeError: 'ShaderNodeTree' object has no attribute 'output' Here ...
Bryan's user avatar
  • 11
0 votes
1 answer
54 views

How do you add extra socket types to shader node groups in Blender 4.0+?

Before 4.0, you were able to run a script like this: import bpy bpy.data.node_groups['NODE_GROUP_NAME'].inputs.new('NodeSocketFloat', 'SOCKET_NAME') and it would ...
LuigiTKO's user avatar
2 votes
1 answer
55 views

Python remove unlinked nodes in all materials scene

I found this code to remove all unlinked nodes on a material selected , but I want to edit the code to remove all unlinked node in all the material on the scene, I am very bad coding but I know the ...
noel sulbaran's user avatar
1 vote
1 answer
96 views

Is there any way to create a boolean input to a ShaderNodeGroup in Blender 4.x using python?

I'm working now on a plugin that includes NodeGroups and I want to make a Boolean Socket. I remember that in the older versions it was possible to do this, but in the Interface system, I didn't really ...
Golden Dragon's user avatar
4 votes
1 answer
215 views

Is there a way to create custom Node types or Nodes Categories using Python?

I want to create custom Nodes for my plugin, and I've found a few places on the web that say it can't be done, and a few places I've seen people say yes, but haven't explained how. So what is the ...
Golden Dragon's user avatar
1 vote
1 answer
51 views

How to Convert Coordinate object from Coordinate Node into Mapping Node?

In the example below, I'm using an empty object that I've named "Empty XYZ" as the Coordinate Object, right in the Coordinate node into the Sphere Material (Named: "Strip Material")...
Noob Cat's user avatar
  • 1,269
0 votes
0 answers
26 views

How to call group_ungroup operations when using blender is a python module

I want to ungroup a node group when writing a script launched from a python command line, and I try to use group_ungroup as follows: ...
Lingjie Mei's user avatar
0 votes
0 answers
14 views

Dynamic NodeGroup Updates: Managing Link Movements with Socket Names

I am working on a certain Add-On, part of which is the dynamic creation of Node groups. I use the following code to update the NodeTree of each Node when the underlying NodeTree is updated. ...
Golden Dragon's user avatar
0 votes
1 answer
59 views

Using a script to set the current values of a shader node groups sockets, as their new "default" values

I'm trying to fix an old discontinued addon, but the new bpy changes in 4.0 are throwing me off. I've tried implementing the new 'tree.interface' elements, but it keeps spitting errors. And of course ...
Cody Setchfield SMOUSE's user avatar
4 votes
1 answer
277 views

How does a monkey head touch a cube

How does a monkey head touch a cube
ASD1 ASD21's user avatar
4 votes
1 answer
355 views

Add or Remove item / socket in Nodetree / Node group - New "Items Tree" - Blender 4.0

First of all, I want to mention that I'm quite new to programming with Python and Blender. Now, I wanted to know how I can create (or remove) a new socket in a custom nodetree considering the new &...
pablo-dra's user avatar
1 vote
1 answer
165 views

How to get what a node group's name is inside a material?

My script prints every node group name, how many nodes are inside it, and its users. The node groups are sorted by how many nodes are inside them so I can find possible redundant/duplicated node ...
Don Cheadle's user avatar
1 vote
1 answer
84 views

Is it possible to automatically create a plane between two spheres when they move and reach each other?

Is it possible in Blender to do something like, whenever these two spheres move and reach each other, a plane automatically gets created between them? I tried the answer below and then changed the ...
dsa's user avatar
  • 35
1 vote
0 answers
69 views

How can you show socket descriptions in My VIEW_3D panel into Blender 4.0?

From some version I noticed that the node_groups sockets have a new "description" attribute which however was not visible in the interface until the Blender 4.0 version which now makes it ...
Noob Cat's user avatar
  • 1,269

15 30 50 per page
1
2 3 4 5
26