Questions tagged [pynodes]

PyNodes (or Dynamic Nodes) are nodes defined by Python scripts saved as text in a blend file.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Simple RGB Output On Custom Python Node

This could be a dumb question, but I can't figure out for the life of me how to make a custom python node with a color output. I am working from blender's ...
0
votes
0answers
8 views

Active RenderLayer Node for Material Nodes?

I need a way for a material to know what renderlayer (viewlayer?) is currently being rendered. Basically, a "Current View Layer" Node. I found some code that seems to try to do what I need, ...
1
vote
0answers
21 views

Settting tite bar color of custom pynodes

How does blender determine what the title bar color of a node will be? The theme has color settings for each node category, but what determines which category a node is in for selecting its color? ...
0
votes
0answers
28 views

Node socket set link limits

I have been having a problem setting the link limits for a custom node socket. Currently, only one link as allowed on input the socket. I have tried setting ...
1
vote
0answers
8 views

How to search for files in Sequencer by format, through my Custom Node?

I am creating a Custom Node that handles Audio. I want to get the list of all Sound Strips (Files) that has been already added to the Video Sequencer. I want to create an Input that when you click ...
2
votes
1answer
55 views

Custom Nodes Variables Not Being Stored

I am having an issue while working on a custom node tree. When I create a variable in self on a custom node it is not available in other functions of that class, for example: ...
1
vote
0answers
87 views

Run function on material node tree update

I need to run a function when the user adds or removes a node from a material. My first idea was to use msgbus to subscribe to bpy.types.Nodes. This works great ...
0
votes
0answers
16 views

Need to transform axe X of UV map Vertex in the Rotation Z of my object

I have a texture 1024x20px and a object like a simple cube, i need to transform the X axe in UV editor in to rotation Z of my object, so when i'll rotate my cube it will change color automatically ...
1
vote
0answers
33 views

Custom shading nodes for point objects

I am scripting Blender 2.81 to model scenes for my own renderer, with custom material nodes, which are defined as (MyRendererNodes and ...
1
vote
1answer
130 views

How can i enable composite node in python?

though with the codes i have searched in google , it still doesn't solve the problem, i want to enable one specific composite node like this : and this is the inactive state: From inactive state to ...
1
vote
1answer
181 views

Is there any way to override UILayout.prop tooltip?

I have a collection on boolean properties I want to display in a node. BoolVectorProperty isn't really applicable because I want to be able to change the size of ...
6
votes
1answer
233 views

Custom Nodes: How to validate a link?

I'm developing an add-on that uses a custom node tree. I want to be able to set a link between nodes as being valid or not: NodeLink has the property ...
1
vote
1answer
27 views

pyNode with button: any way to find which node the button pressed was on?

I want to have a pyNode with some buttons on it that modify the node. Similar to how some of the built-in nodes work (Color Ramp, Curves, etc). I can easily put a button on the node using an operator,...
1
vote
1answer
47 views

Where is this color node?

I don't know how to put a color node with the chromatic gradient
0
votes
1answer
117 views

Increase the length of the z-buffer [duplicate]

I am using the examples already given here, i.e. Convert depth/z value to RGBA The problem I am facing here is to increase the depth. If one sees clearly a blue pattern starts from a close distance ...
0
votes
0answers
54 views

Need help with creating a custom material node with python

I'm trying to make a custom node in python, and I've been able to make the input and output sockets, but I have no idea how to connect the input float values to the output float values. I've already ...
1
vote
1answer
41 views

I have a folder of X number of textures, I wish to render the same image X number of times, once for each texture

I have a model with the material set up, but I wish to change an image texture on this model for each frame. In the past I have set up an image texture node and mix shader for each texture but this is ...
1
vote
0answers
67 views

Allow cyclic connections in custom node tree

I want to allow a cyclic connection in a custom node tree. Here is an example screenshot of a cyclic connection. From what I uderstand, the following happens: As soon as a link is inserted such that ...
2
votes
1answer
103 views

How do NodeSockets determine if a link between them is possible?

I have two NodeSockets class SockA(NodeSocket) and class SockA(NodeSocket). Now when I ...
1
vote
0answers
232 views

Update pynodes after user action on custom Node Tree

I try to execute update on my custom pynodes when user performs action: delete links, add link, removes node. From Animation Nodes or Sverchok I could figure out i can use NodeTree -> update() method ...
2
votes
0answers
190 views

Custom Pynodes: Not getting the correct value from the in socket

I created a custom pynode intended to multiply vectors. This script is based on the vid from Atom and various code I found on the internet and the blender wiki pages. The problem I am having is that ...
3
votes
0answers
370 views

Creating nodes with dynamic number of input sockets?

Is it possible in any way to create one's own node type in one of the node editors (let's just say the Compositor for example) that can have a dynamic number of inputs? Not a group node, just a ...
3
votes
1answer
1k views

Convert depth/z value to RGBA

I'm trying to render a RGBA depth map of my scene where each channel byte is a byte of the 32-bit single float Z/depth value. The result will look like a blueish/magentaish render instead of a ...
0
votes
1answer
321 views

Trouble reading / writing linked nodes when creating a custom node

I've tried to figure this out for quite some time, with no luck. If anyone can help, that would be awesome! I'm essentially trying to convert the X and Y outputs of the Separate XYZ node into a ...
2
votes
1answer
2k views

Add nodes to a custom node tree

I have a custom node tree called MyCustomTreeType. I know that there are scripts to add nodes to the composite and material node trees: Controling compositor by python How can I use this with my ...
3
votes
1answer
2k views

Custom NodeTree and NodeCustomGroup and bpy.ops.node.tree_path_parent()

I've done a fair amount of custom PyNode tree scripting for Sverchok, but one thing remains a bit nebulous and i'm hoping someone can shed some light. The Material node trees have this Group feature ...
3
votes
0answers
619 views

Using data with python nodes

I have created a number of python nodes inside my own tree. I have one node that takes one input and has a button called "Simulate". This is an operator that is held in another file. Currently all it ...
0
votes
0answers
604 views

Set Label in Python Node?

So I am experimenting with python nodes. So far I am able to add a new node tree and my Nodes are doing things (adding and multiplying floats...well). One more cosmetic thing is that I don't get how ...
0
votes
2answers
561 views

How to import many images so assign to texture_node and duplicate “n” times objects and materials?

I am searching a way to: duplicate a selected object and It's material 244 times.. import 244 photos (image_000, image_001, ...) in the scene assign these images to an image_texture node (included in ...
7
votes
1answer
585 views

How do I get an icon to appear in the label of my custom python node?

Note: This was an issue in 2.79, but has been fixed in 2.83. Custom python nodes have a bl_icon property which, when set to a valid icon name, is meant to display ...
7
votes
2answers
2k views

How to introspectively modify nodes from Python

Ok, this is quite a weird case. TL;DR Why (and how is it Pythonically possible that) Blender's nodes dont have the __dict__ attribute. How to programatically add ...
1
vote
0answers
160 views

Execute custom code once automatically in an add-on

I want to create a very simple add-on that will automatically call some code (e.g. see example below) that will create a custom group node to be available in the compositor. What should the simple add-...
1
vote
2answers
257 views

Share custom compositor nodes among blend files

I feel there are some basic nodes currently missing from the node repertoire of the compositor and material editor. One such node (for me at least) is a "vector" node. This would be the 3D equivalent ...
0
votes
0answers
80 views

How do you affect object transforms with nodes?

I'm new to writing new node systems, so bear with me, but how do you write nodes that affect the transform [matrix] of objects and maybe even data [vertices]? I just need some help getting started.
3
votes
1answer
1k views

How to create a node group with a custom node tree?

Is there a way to make node groups with a custom node tree? The option is grayed out in the node menu. I checked Sverchok's implementation, but it also seems like they don't support node groups.
2
votes
0answers
228 views

Where are PyNode socket values stored?

I'm having trouble wrapping my head around how information flows through PyNodes.. Where/how should I set the value of my node's output sockets? I've been trying to implement this in my node's update ...
5
votes
0answers
493 views

How to display texture preview on a custom node?

I'm trying to use layout.template_preview to display texture previews on some custom nodes I created. I'm currently calling it with just: ...
7
votes
1answer
491 views

How to add backdrop images for py nodes?

When creating a custom Node - tree type (not scene/material/texture) is it possible to have a background image defined? This would be similar to how the compositing nodes allow an image backdrop, but ...
6
votes
1answer
789 views

Cycles pynode which outputs object's properties

I want to create a custom pynode that reads the object properties (position, rotation, scale ...) of the current object on what the material with the custom pynode is applied to and use these values ...
3
votes
1answer
455 views

Can't add nodes from custom nodes template

When I load the Cusom Node template into the text editor and run it in blender I can't add the created nodes in the newly created node tree. I see them but they are grayed out. Is the code somehow ...
3
votes
1answer
1k views

PyNodes: get active node tree from context in Blender 2.72

I'm working on a custom nodetree-based addon for scientific analysis. My code requires knowledge of the active nodetree in the current context (or alternatively the parent nodetree of a selected node) ...
1
vote
1answer
278 views

How to make custom node type animation data show in dope sheet

I have created a custom node type, using the blender custom_nodes.py template. I have made a custom node, with a IntProperty with ANIMATABLE set as an option of the IntProperty. i can insert a ...
9
votes
3answers
2k views

PyNodes API: transferring data between nodes with sockets

I'm developing a custom NodeTree using the PyNodes API (on Blender 2.70) for scientific analysis and am having trouble choosing the best way to transfer data between nodes via sockets. Right now I ...
2
votes
1answer
744 views

How to pass color value from input to output in custom python node

I want to make custom node that can be used in compositing nodes. I stuck in part when I need to pass color value (and do some operation on that) from input to output socket. ...
8
votes
1answer
369 views

How can I transfer a collection of float values to a node socket​​?

How can I transfer a collection of float values to a node socket​​? This is what I've tried: Create a list of float values ​​and convert each of them to a string Pass the string to the socket In the ...
4
votes
1answer
271 views

How can I connect several links in the input node?

I need a slot to connect multiple links. In the API is an attribute of links to the type of collections: links = self.inputs ['ListAttrs']. links ...
2
votes
1answer
200 views

Bug of the socket output, is not it?

Input and output sockets do not work the same way. The picture seen sockets input and output node "ObjectProps". The socket input button is drawn, while the output socket - no. Who knows the reason? ...
13
votes
2answers
1k views

Getting pynodes geometric node to work

I downloaded the geometric node from git, and copied it in the addon folder of blender 2.67. Tried with 2.67b and a self-compiled svn version, in both, I can't enable it in the user preferences. Does ...
15
votes
2answers
2k views

PyNodes, the bare basics

I know it's a very new thing (post 2.4 era anyways) but there seems to be very little documentation and examples for PyNodes in general, and the little there is doesn't seem to work in latest SVN (...
5
votes
2answers
703 views

Is it possible to create a compositor node with PyNodes that outputs camera clip_start and clip_end?

Im not looking for a how to, but some of you may know if this is possible or not. An example of a dummy node added to compositor would be much appreciated, i can't find any (or i'm looking in all the ...