On this page |
In Houdini, you can keyframe the value of string parameters.
Note
You can embed global and local variables (such as $F
, the current frame number) and expressions inside backticks in most string parameters. For example:
Frame: $F
You are `fit($F, 0, 240, 0, 100)`% done.
In some cases this is easier than keyframing individual values for a string parameter.
Example ¶
-
On the Create tab, click Font.
-
Double-click the
font_object
node to dive inside. -
Click the
font
surface node. -
In the parameter editor, set the Text parameter to
Hello
. -
Right click the Text label and choose Keyframes ▸ Set keyframe.
You can also Alt-click the label to set a keyframe on the parameter.
-
Use the playbar to move the current time.
-
Change the Text parameter to
There
. -
The parameter background is yellow, indicating an uncommitted change to an animated parameter. Alt-click the label to commit the change.
(If the auto-commit preference is on, you will not need to commit the change.)
Notes ¶
The keyframes appear in the graph editor and are editable, but the different string values are not apparent (the graph line is always flat).
Once you've keyed a string parameter (that is, created an animation channel on the parameter), you will need to be aware of whether you are editing the parameter in “expression mode” or “value mode”.
-
Clicking a parameter label switches between “value mode” (normal label background), showing the current value of the parameter, and “expression mode” (filled label background), showing the expression driving the parameter.
-
In value mode, an animated string parameter shows the current string value, for example
Hello
. In expression mode, an animated string parameter shows an expression that evaluates to the string value, for example"Hello"
.