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
1
vote
1answer
29 views

Where is this color node?

I don't know how to put a color node with the chromatic gradient
0
votes
1answer
55 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
32 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
26 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
59 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
63 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
118 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
117 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 ...
2
votes
0answers
263 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 ...
0
votes
0answers
90 views

Is the Node/Noodle Code Written in C or Python?

I've been trying to figure out if the node/noodle code in Blender is written in C or Python. Anyone know? And if so (if I may be allowed a follow-up) can you point it out for me (file, if not ...
3
votes
1answer
912 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
226 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 ...
1
vote
1answer
1k 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
969 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
559 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
401 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
392 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 ...
5
votes
1answer
410 views

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

Custom python nodes have a bl_icon property which, when set to a valid icon name, is meant to display an icon for the node. I presumed this icon would appear next ...
6
votes
2answers
1k 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
127 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
211 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
78 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
729 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
208 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
407 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
426 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
655 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
358 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
856 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
259 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 ...
7
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
610 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
316 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
206 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
197 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
988 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 ...
13
votes
1answer
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
664 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 ...
5
votes
4answers
4k views

Has anyone started a project similar to Grasshopper (Rhino) for blender?

For a while now I've been interested in prototyping parametric ways to generate geometry. The nodeview of Grasshopper reminds me a lot of the nodeviews we have in blender. I was thinking, with the ...