Is there a way to add text or annotation frames in the geo nodes editor? (to, for example, document methods or problems for oneself or for future users). I want these to appear in the editor, not on the layout.
2 Answers
The following description applies to both the Geometry and Material nodes editors and was discovered after experimenting so I may have missed some options. Select your required nodes and frame them with Ctrl-J. Unchecking Shrink on the Properties section of the N-panel will allow you to manually resize the frame by dragging the edges and to move the nodes around in the frame to make room for the annotation. The Label Size applies to both the top frame label and the annotation.
Open a Text workspace, add and name a new document, then enter your required annotation text.
In the node workspace, click Text in the side panel and select your text document name. This will then be added to the frame.
You can change the text in the editor and this will be updated on the frame when you click anywhere in the node workspace.
-
$\begingroup$ Re-reading the question again, you can also press 'W' to bring up the toolbar and use the annotation tools, but you'd have to write any text with the mouse or a pen and graphics tablet rather than typing. $\endgroup$ Commented Feb 2, 2023 at 12:34
-
$\begingroup$ Thanks everyone. These tips are incredibly valuable to me and I couldn't find it on the exchange, nor in the manual. Hope it helps others as well. $\endgroup$ Commented Feb 2, 2023 at 22:51
Left Click Select , CTRL+J, Left Click Frame, F2
-
4$\begingroup$ You can also add the contents of a text file to the frame background from the Properties > Text section on the N panel, but you then have to resize the frame and move the nodes around so that they don't cover it which is a bit of a fiddle. $\endgroup$ Commented Feb 1, 2023 at 19:25
-
3$\begingroup$ @JohnEason ... this deserves stand-alone answer with a single screen that is awesome I didn't notice it :) $\endgroup$– vkliduCommented Feb 1, 2023 at 20:11
-
$\begingroup$ @vklidu I'll add an answer shortly. I'd only realised that it was possible myself after I saw this question and had a play! You can actually create the annotation in the Text editor and use that in the frame! $\endgroup$ Commented Feb 1, 2023 at 23:17
-
$\begingroup$ @JohnEason For resizing the frame that the nodes don't cover the text it might also be useful to know that you can disable the Shrink option in the Properties which is enabled by default and mostly ignored by most people, so you should add this in your answer :) $\endgroup$ Commented Feb 2, 2023 at 8:17
-
$\begingroup$ @GordonBrinkmann Yes I saw that when experimenting last night and was going to add that as part of my answer otherwise the nodes just cover the annotation text. $\endgroup$ Commented Feb 2, 2023 at 9:09