2
$\begingroup$

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? enter image description here

$\endgroup$
4
$\begingroup$

This is a missing feature of the node API. There is a patch for this ready and waiting, but since it changes the way node sockets look i want to wait for green light from scripters before committing to trunk.

See bf-committers thread

UPDATE: This feature has been added in trunk now (r60661). Socket draw functions are responsible for drawing only labels if that is the desired behavior, otherwise inputs and outputs draw the same way. See the API changes wiki page.

| improve this answer | |
$\endgroup$
  • $\begingroup$ I want to draw a button on the socket output. But it does not work. How can draw a button on the socket output? The socket input is possible, and in the socket output is not possible. Why? $\endgroup$ – Alexander Nedovizin Sep 7 '13 at 12:46
  • $\begingroup$ (Also note: in the Properties of N-panel socket output is not adjudged. Input socket is there) $\endgroup$ – Alexander Nedovizin Sep 7 '13 at 13:42
  • $\begingroup$ This is just what that patch fixes. You can then use the socket.in_out and socket.is_linked properties to distinguish by input/output and connection to produce the behavior you want. $\endgroup$ – lukas_t Sep 7 '13 at 13:57
  • $\begingroup$ Need to change the module source/blender/editors/space_node/drawnode.c and compile the application Blender? Can you give a link to the finished compiled Blender with this patch? $\endgroup$ – Alexander Nedovizin Sep 7 '13 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.