Value Solver
Pro features are only available with a Professional licence. To upgrade, visit cavalry.scenegroup.co.
Intro
Store the values from previous frames in order to accumulate and/or fade them over time.
UI
- Solver
- Advanced
Mode - Set the Solver's mode:
- Accumulate - Add the Value on each frame.
- Highest - If the value on the current frame is higher than the Value then it is kept.
- Lowest - If the value on the current frame is lower than the Value then it is kept.
- Velocity - Multiply the velocity of a Shape by the Value. See example below.
Value - Set the value to be added to the solver on each frame.
Fade Mode - Determine whether values should remain persistent or fade back to the initial value.
- Off - Don't fade values.
- Multiply by Value - On each frame, multiply values based on the Fade Value.
Fade Value - The speed at which the value will return to its initial values once the Solver is 'off' (e.g. outside a Falloff). The lower the value, the quicker the fade.
Offset - Add/subtract a value to the output.
Start Frame - Set the first frame to start the solver on. By default, this is connected to the Composition's Frame Range (Start) attribute — remove this connection to set a custom value.
Time - A default connection to the Composition's Time attribute.
Use Cache - When checked, the simulation can be saved to a .sdcache
file. This can be useful for faster playback with heavier simulations or for retiming via the Cache Offset. It is also required for Motion Blur.
Cache File Path - Set the location the cache file is saved. This is determined when first caching a solver or use the folder icon to open a Finder/ Explorer window and navigate to an existing .sdcache
file.
Cache Offset - Set a time offset for the cache.
- Create a Value Solver.
- Set its Offset to 2 and set Fade Mode to Multiply by Value.
- Right click on the Value Solver's Value attribute in the Attribute Editor and add a Value Behaviour.
- Set the Value on the Value Behaviour to 0.5.
- Add a Falloff to the Value Behaviour.
- Make a Polygon.
- Connect valueSolver.id→polygon.sides.
- Select the Polygon and click the Duplicator icon in the Shelf.
- Move the playhead forward so it's not on frame 0.
- Move the Falloff around in the Viewport.
As the Falloff is moved over the Polygons, their number of sides increase and then return back to 2. As there's no such thing as a 2 sided polygon the shapes disappear. By setting the Offset on the Value Solver to 3 then the shapes become triangles (3 sided polygons) when outside of the Falloff.
In the example above, the colour is also being affected. To do this simply:
- Create another Value Behaviour.
- Connect valueSolver.id→value.value.
- Connect value.id→polygon.materialColor.r.
- Ramp up the Strength attribute on the Value.
In this example the Value is simply being used as a multiplier to set values that have a visible effect on a range of 0-255 (the red channel).
- Create an Ellipse.
- In the Attribute Editor, right click on the Position attribute and choose
Add Behaviour > Noise
. - Set the Noise's Minimum and Maximum to -100, 100.
- Create a Value Solver.
- Set the Value Solver's Mode to Velocity.
- Set the Value Solver's Value to 0.1.
- Set the Value Solver's Offset to 1.
- Connect valueSolver.id→ellipse.scale.x.
- Connect ellipse.scale.x→ellipse.scale.y.
- Play.
As the Ellipse increases in velocity, its Scale also increases.