Skip to main content

All Questions

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
0 votes
1 answer
67 views

Filtering socket in custom node tree inputs

How can possible socket types be filtered in a custom node tree for group inputs and outputs? In node tree input/ output socket types is there a way to control which socket types appear? To test: ...
BlenderEnthusiast's user avatar
1 vote
2 answers
239 views

Activate addon not working

I was experimenting with python scripting and came across registering addons. According to Blender Add-on Tutorial, the register and unregister functions are called when activating and deactivating ...
BlenderEnthusiast's user avatar
0 votes
0 answers
315 views

From Nodes to Python. Getting the code from a complex shader node tree

I've created a complex shader node tree for the world material and I want to pack it into an addon. Do I really have to recreate all of it in Python or is there a way to just copy and paste the ...
Zwackelmann173's user avatar
1 vote
0 answers
283 views

Arrange nodes with python

I am trying to get my dynamically created material nodes aligned per script. Since the "Node Arrange"- Addon does a good job at aligning nodes I would like to use that. I have managed to get ...
Braindrain85's user avatar
0 votes
1 answer
126 views

Why is blender forgetting the 'type' function when I try to copy nodegroups?

I'm upgrading my procedural addon with the ability to add individual procedural groups into other materials. I've figured out how to make buttons on the side menu that do it, but it's less than ideal. ...
MisterLBlends's user avatar
1 vote
1 answer
87 views

How do I get an RGBCurves value in an addon menu?

I'm sure you've all had enough of me by now, but I need to get this working, so I'm just going to power through. Is there a way to get this: into my addon menu? Ideally it should be hidden by default,...
MisterLBlends's user avatar
3 votes
1 answer
181 views

How do I get a ColorRamp field into an addon menu?

I'm back again with a code problem that's probably obvious to everyone else. I'm trying to make a one-stop menu for the initial setup of a texture system I've developed, and I'm having trouble getting ...
MisterLBlends's user avatar
0 votes
1 answer
1k views

How can I use custom node groups as node templates/presets?

I want to make my node groups available as templates/presets, but unfortunately the Node Presets addon provided for this does not work as expected with my geometry ...
quellenform's user avatar
  • 37.9k
0 votes
1 answer
253 views

python code to change a text during the timeline

I'm a physicist teacher and I'm trying to create a code that modifies a text during the timeline evolution. The idea is make a display that show some information such the position of an object while ...
mack_hyuuga's user avatar
1 vote
0 answers
28 views

Python: get nodes INSIDE custom node-groups [duplicate]

I'm trying to edit the Sun position addon (that's bundled with Blender). Normally the addon work by detecting Environnement Texture nodes, and then letting you pick which one to use, but I found out ...
Felina Faerlaingal's user avatar
0 votes
0 answers
168 views

Is it possible to add custom nodes to the material editor?

I noticed the addon for the Renderman Render Engine for Blender added its own custom nodes for shaders. I wanted to know how I can do this, and write my own python code for them. For example, I wanted ...
Mister SirCode's user avatar
2 votes
1 answer
189 views

Node group not found after script execution

I was trying to recreate script from video, but with my own node group and I ended up with an Error which is too hard for me to understand. Script did works and create node groupe, but for some reason ...
BSD's user avatar
  • 23
0 votes
0 answers
289 views

Controlling Node Values with python custom UI / FloatPropetie

I am currently trying to make an addon for my Minecraft Pufferfish rig with many options and settings. Now I am at the point that I have created around 60% of my UI with different properties like int ...
BlueEvil's user avatar
1 vote
1 answer
181 views

How to overide custom node operator variables in the execution

Related to the question here I wanted now to use the export custom node from the same addon. Considering that the invoke() function calls the file browser for ...
ttsesm's user avatar
  • 409

15 30 50 per page