5
$\begingroup$

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 wrong places)

The PyNodes documentation is here, The TextEditor template Custom Node creates a custom node tree, but what am I supposed to do with that?

$\endgroup$
6
$\begingroup$

PyNodes do not make it possible to extend Blender Internal, Cycles or the compositor with new nodes.

They are designed to make user interfaces for new node systems. For example developers of external render engines can use them to make their own shader node systems, or an addon could make a new geometry node system.

It would of course be very useful if they did, but that would be a much bigger project, as it requires each node system to expose an API with access to its inner workings.

$\endgroup$
6
$\begingroup$

Not sure if this is possible with PyNodes, Seems like the sort of thing you'd use Drivers for.

You can use node settings to drive these values too, Add a driver to the cameras clipping, and set the driver to point to a scene property, eg: node_tree.nodes["Mix"].inputs[0].default_value

Example setup

And the other way around you can do too, of course. Add a driver to a value node, and set the driver to point to the camera property like clip_sta and clip_end.

Second example setup

$\endgroup$
  • $\begingroup$ using drivers is indeed a solution, but I have to accept the definitive answer by brecht on whether or not PyNodes could do it $\endgroup$ – zeffii Jun 1 '13 at 21:49

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.