-
Notifications
You must be signed in to change notification settings - Fork 6
Creating and Editing Component Nodes
Visual noise is always edited via currently active noise component. The noise component is both a noise node and a graph containing other nodes. To be edited, it has to be added directly or indirectly to VisualAccidentalNoise
that must have a main component.
Lets say we have a main component containing the following nodes:
Once you have this setup, save the component as simplex_rose.tscn
:
Now in order to include saved component as node, we need to create a new main component, replacing the edited one that was safely saved to disk:
An empty component with Output
node will appear. Now we have to add our newly created simplex_rose.tscn
component node into this one. Press Add Component
button and browse to load it:
Once the component is loaded, a special component node will appear. Connect it to output node, and optionally enable preview for that node to see the changes made to it. You can also rename the node itself:
Clicking on Open in Editor
button will allow you to edit the loaded component as before, with ability to go back to a parent or main component:
As you may already noticed, in order for the component to be more useful it can define input ports as arguments. For that you need to add special Input
nodes to the component:
Add, connect, and rename them like this:
If you go back to the main component now, the edited component node should have named input ports. Other nodes can be connected to these ports, but default values can always be edited alone. Define port values as they were before refactoring:
Oftentimes, when you're in a deep experimental noise creation, you don't really care about making your noise modular, but at some point the nodes pile up quickly. While it's possible to create a component node individually, there a way to quickly turn a connected chain of nodes (or selected group of nodes) into a node component. This allows for convenient refactoring of nodes:
Other workflows are possible, like creating a new component beforehand and editing it right there.