Questions tagged [pynodes]

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

PyNodes have access to the Blender Python API, just like normal scripts with or without guis, script links, space handlers, pydriver expressions, etc do.

Link to wiki entry

PyNodes cookbook.

56 questions
6
votes
1 answer

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 for the shader itself. E.g. If the position of the…
p2or
  • 15,860
  • 10
  • 83
  • 143
5
votes
0 answers

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: layout.template_preview(bpy.data.textures['some_name']) I'm not exactly sure what the other parameters…
tiredNconfused
  • 123
  • 1
  • 5
4
votes
1 answer

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 for link in links: ... How can I connect several links in the input node?
2
votes
0 answers

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 I can not get correct input values from the socket…
2
votes
0 answers

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 method. My idea is that I should be able to…
ajwood
  • 10,063
  • 11
  • 60
  • 112
2
votes
1 answer

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? How to make a button in the output socket?