This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.
Nodes in this category edit, combine, split, and search strings of text.
Nodes
| Node | Details | Possible Types |
|---|---|---|
| L-System | Grows a string by rewriting all of its symbols at once with the rules, once per generation, for drawing with the Turtle Path node. Since every symbol with a rule is replaced in each generation, patterns repeat inside themselves at ever finer scales, like the branching of plants or the folds of fractal curves. | String → StringString[] → String[] |
| Lorem Ipsum | Generates Lorem Ipsum placeholder text of a desired length. The classic "Lorem ipsum dolor sit amet…" intro may be included up to its full four-sentence (or one-paragraph) length, or used in part or not at all, after which the randomized Latin-like text continues producing paragraphs until the requested length is reached. | → String → String[] |
| String Capitalization | Converts a string's capitalization style to another of the common upper and lower case patterns, optionally joining words with a chosen separator. | String → StringString[] → String[] |
| String Concatenate | Joins two strings together. | String → StringString[] → String[] |
| String Contains | Checks whether the string contains the given substring. Optionally restricts the match to only the start and/or end of the string. | String → BoolString[] → Bool[] |
| String Escape | Converts between literal escape sequences and their corresponding control characters within a string. Unescape: Escape: the actual special characters are converted back into their escape sequence representations. | String → StringString[] → String[] |
| String Find Index | Similar to the String Contains node, this searches within the input string for the first (or last) occurrence of a substring and returns the index of where that begins, or -1 if not found. | String → NumberString[] → Number[] |
| String Join | Joins a list of strings together with a separator between each pair. This is the inverse of the String Split node. For example, joining | String[] → String |
| String Length | Counts the number of characters in a string. | String → NumberString[] → Number[] |
| String Map | Iterates over a list of strings, evaluating the mapped operation for each one. Use the Read String node to access the current string inside the loop. | String[] → String[] |
| String Occurrences | Counts the number of occurrences of a substring within the string. | String → NumberString[] → Number[] |
| String Pad | Pads the string to a target length by filling with the given repeated substring. If the string already meets or exceeds the target length, it is returned unchanged. | String → StringString[] → String[] |
| String Repeat | Repeats the string a given number of times, optionally with a separator between each repetition. | String → StringString[] → String[] |
| String Replace | Replaces all occurrences of "From" with "To" in the input string. | String → StringString[] → String[] |
| String Reverse | Reverses the sequence of characters making up the string so it reads back-to-front. ("Backwards text" becomes "txet sdrawkcaB".) | String → StringString[] → String[] |
| String Slice | Extracts a substring from the input string, starting at "Start" and ending before "End". Negative indices count from the end of the string. If the index of "Start" equals or exceeds "End", the result is an empty string. | String → StringString[] → String[] |
| String Split | Splits a string into a list of substrings based on the specified delimiter. This is the inverse of the String Join node. For example, splitting "a, b, c" with delimiter ", " produces | String → String[]String[] → String[] |
| String Trim | Removes leading and/or trailing whitespace from a string. Common whitespace characters include spaces, tabs, and newlines. | String → StringString[] → String[] |
| String Truncate | Clips the string to a maximum character length, optionally appending a suffix (like "…") when truncation occurs. Strings already within the limit are not modified. | String → StringString[] → String[] |
| Turtle Path | Draws paths by following a string of turtle commands, like the ones an L-System grows. | turns around, and[and]begin and end a branch.</p><p></p><p>A number in parentheses gives one command its own amount, likeF(25)or+(30), and a second number on ForGis the width it draws to, likeF(25, 3).</p><p></p><p>Handhgo half a step, drawing or not."and_multiply and divide the step from then on, as;and@do the angle and!and?the width.~turns a random amount, andTbends the heading toward the ground.'and# count up two numbers, U and V, for coloring or anything else downstream.</p><p></p><p>{begins a filled shape,.adds an anchor where the turtle stands, and}closes it. Outside a shape,.places a point on no path instead, for **Vector to Points** and **Transform** to copy shapes onto. Its kind is 1, or a number like.(2)` gives another, so different shapes can go to different points.Each point records its branch depth, distance traveled, heading, width, step length, UV, and kind as attributes. Drawn points have a kind of 0. |