10
$\begingroup$

I need a node like the "view" node in the Animation nodes. This is for debugging purpose. If I added two values or used the sin function and I want to check the results are correct or not, What can I do? How can I display the values inside attributes?

I googled and found out that there is no original node made for this. Is there a method to get around it?

$\endgroup$

2 Answers 2

5
$\begingroup$

If you have a node tree like this:

enter image description here

just open the spreadsheet...

enter image description here

and if you mute the point instance node you will see your values.

enter image description here

$\endgroup$
1
  • 2
    $\begingroup$ Worth noting this interface is from 3.0 alpha, it features a "viewer" node in replacement of the monitor icon which is in the top right of nodes in V.2.93. The Geometry domains were also placed in the left hand side rather than popups on the top of the Spreedsheet editor $\endgroup$
    – Gorgious
    Jul 16, 2021 at 6:42
6
$\begingroup$

This isn't quite for displaying attributes, but it's still useful.

The Node Wrangler Add-on has a hotkey for connecting something to the output with a single click. Node Wrangler is one of the built-in add-ons, so if you go to Preferences > Add-ons > Community, it should already be there. Simply hit the check mark to enable it.

Alt+Shift+Left Click any node that has a Geometry output and it'll connect it to the output, so that you can see what that intermediate step looks like in the Viewport.

enter image description here

This doesn't work for values like float or int since they are not geometry, but you can just hover over the output or input socket of a node and it'll display the computed value in a tooltip.

enter image description here

If the tooltip says 'The socket value has not been computed yet.', you can Ctrl+Shift+Left Click that node to connect a Viewer Node (works without Node Wrangler), which will make the value show up in the Spreadsheet. The value will then be computed and hovering should work again (...if you have the spreadsheet open, and if it is set to Viewer Node)

$\endgroup$
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .