Docs Project

ResetPLS

Reset stateful operators (feedback, cache, timers, counts) across the project, with a pattern-based exception list. Bound to ctrl+0.

⚡ Project Toolbar button

Why use it

Anything in TouchDesigner that builds up over time needs a way back to the start: feedback loops, trails, caches, counters, timers, particle systems. While you build, that means clicking reset pulses one by one, or dragging a Keyboard In CHOP into every network and wiring it to each reset parameter. Neither scales. Once a project has a dozen of these spread across components, you forget one, and the run-through starts with last night's trails still on screen.

ResetPLS gives the whole project one reset button. Press Ctrl+0 and it finds every operator of the kinds you care about, wherever it sits, and pulses its reset. There is nothing to wire, and operators you add later are included the next time you press it.

Features

How to use it

  1. Install it. Out of the box it searches the whole project and covers the operators people usually mean by "reset": Feedback and Cache TOPs, Movie File In, Timer, Count, LFO, Lag and Filter CHOPs, particle and spring systems, the physics solvers and MIDI In.
  2. Press Ctrl+0 (Cmd+0 on macOS), click the ResetPLS button on the toolbar, or run Reset all generators from quick-launch.
  3. To change which kinds of operators are included, right-click the toolbar button to open the parameters and switch types on or off on the TOP, CHOP, SOP, POP, DAT and COMP pages. Enable All OPtypes and Disable All OPtypes flip them all at once, which is handy when you only want two or three types.

A few habits that help in a show:

  • Switch on Reset On Startup and the project resets itself once as it opens, so every run starts from the same place.
  • A reset also sends the root timeline back to frame 1. If you only want the operators reset, switch off Reset Timeline on the Misc page, or pick another frame there.
  • Bind Ctrl+0 to a spare mouse button. It is the key you reach for most while tuning anything feedback based.

There is also a video breakdown on YouTube.

Leaving things out

Some things should survive a reset: a Record CHOP holding a take you want to keep, a component that manages its own state, or a whole section of the project you are not working on.

  • One operator or component: add its path to Except. Several paths go in the same field, separated by spaces. Switch on Exceptions Limit to skip everything inside an excepted component as well.
  • Only part of the project: set Root to the component that holds it. Limit Depth stops the search a set number of levels below Root, which also keeps it quick in a big project.
  • Never, in any project: open Static Exceptions on the Misc page and add a pattern starting with ^, for example ^*/presets*. The list ships with a few entries for common components, and ResetPLS keeps itself out of its own reset the same way. With Externalize Tables on, the list is kept in a file and follows you from project to project; with it off, re-save the component after adding rows.

Your own components

ResetPLS resets a component or a Script operator by pulsing a parameter named Reset or Resetpulse. So to make one of your own components part of the reset:

  1. Give it a pulse parameter called Reset, and do whatever resetting means for that component when it fires.
  2. Switch on its type on the COMP page (Base, Container and so on), or Script on the TOP, CHOP, SOP or DAT page.

If your components already use a different name, add it with Edit Custom Reset Pars on the Misc page.

For anything a pulse cannot express, use the callback:

  1. Press Create Callbacks on the Misc page. It puts a text DAT next to ResetPLS with an empty onReset function and points Callbacks at it.
  2. Switch on Callback.
  3. Fill in onReset. It runs on every reset.
def onReset():
	# start the show from the first scene again
	op('/project1/switch_scenes').par.index = 0
	return

Get it

Tick it on the install page and it installs with the rest of your setup and stays up to date.

Download FNS_ResetPLS.tox Version 3.2.11, the tool on its own. It works in any project, and this copy never updates itself.

Where it appears

Shortcuts

  • Cmd+0 / Ctrl+0

Parameters

Its Registry page comes from FNS_ConfigRegistry and FNS_ToolbarRegistry.

Conf

ControlType / defaultWhat it does
RootRoot operator.. Where the search for resettable operators starts. Everything under this component is considered, subject to Depth and the exception lists.
Limit DepthLimitdepth on / offon Stop the search at a fixed number of levels below Root instead of walking the whole tree. Worth it in a big project where a full walk is slow.
DepthDepth number1 How many levels below Root to search, when Limit Depth is on.
ExceptExcept textempty Operators to leave alone, one pattern per entry. Everything else under Root is reset.
Exceptions LimitExceptionslimit on / offoff For an excepted COMP, also skip everything inside it. Off resets its children even though the COMP itself is excepted.
Enable All OPtypesActiveall button Switch on every operator-type toggle across the pages, so the reset covers everything this tool knows how to reset.
Disable All OPtypesDisableall button Switch off every operator-type toggle, so the reset covers nothing until you pick types back.
Reset On StartupResetonstartup on / offoff Fire the reset once, automatically, when the project opens.
ResetReset button Reset now: pulse the reset parameter of every included operator under Root. This is what the hotkey and the toolbar button do.
Reset ShortcutShortcut textcmd.0 ctrl.0 Hotkey that pulses Global ResetPLS. Both the Windows and macOS combos are listed.

TOP

ControlType / defaultWhat it does
FeedbackFeedbacktop on / offoff Include Feedback TOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
CacheCachetop on / offoff Include Cache TOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
Texture 3DTexture3d on / offoff Include Texture 3D TOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
Movie File InMoviefilein on / offoff Include Movie File In TOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
FlowFlow on / offoff Include Flow TOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
Blob TrackBlobtrack on / offoff Include Blob Track TOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
ScriptScripttop on / offoff Include Script TOPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.

CHOP

ControlType / defaultWhat it does
LFOLfo on / offoff Include LFO CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
SpeedSpeed on / offoff Include Speed CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
CountCount on / offoff Include Count CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
TimerTimer on / offoff Include Timer CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
FilterFilter on / offoff Include Filter CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
LagLag on / offoff Include Lag CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
Audio File InAudiofilein on / offoff Include Audio File In CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
Audio OscillatorAudiooscillator on / offoff Include Audio Oscillator CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
FeedbackFeedbackchop on / offoff Include Feedback CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
GestureGesture on / offoff Include Gesture CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
BeatBeat on / offoff Include Beat CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
TrailTrailchop on / offoff Include Trail CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
EventEvent on / offoff Include Event CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
RecordRecord on / offoff Include Record CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
SequencerSequencer on / offoff Include Sequencer CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
NoiseNoise on / offoff Include Noise CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
ScriptScriptchop on / offoff Include Script CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.
SpringSpringchop on / offoff Include Spring CHOPs in the reset sweep, so their reset parameter is pulsed along with everything else.

SOP

ControlType / defaultWhat it does
TrailTrailsop on / offoff Include Trail SOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
CacheCachesop on / offoff Include Cache SOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
ParticleParticle on / offoff Include Particle SOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
CreepCreep on / offoff Include Creep SOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
SpringSpringsop on / offoff Include Spring SOPs in the reset sweep, so their reset parameter is pulsed along with everything else.
ScriptScriptsop on / offoff Include Script SOPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.

POP

ControlType / defaultWhat it does
CacheCachepop on / offoff Include Cache POPs in the reset sweep, so their reset parameter is pulsed along with everything else.
TrailTrailpop on / offoff Include Trail POPs in the reset sweep, so their reset parameter is pulsed along with everything else.
FeedbackFeedbackpop on / offoff Include Feedback POPs in the reset sweep, so their reset parameter is pulsed along with everything else.
ParticleParticlepop on / offoff Include Particle POPs in the reset sweep, so their reset parameter is pulsed along with everything else.
Import SelectImportselectpop on / offoff Include Import Select POPs in the reset sweep, so their reset parameter is pulsed along with everything else.

DAT

ControlType / defaultWhat it does
MIDI InMidiin on / offoff Include MIDI In DATs in the reset sweep, so their reset parameter is pulsed along with everything else.
MIDI EventMidievent on / offoff Include MIDI Event DATs in the reset sweep, so their reset parameter is pulsed along with everything else.
FifoFifo on / offoff Include Fifo DATs in the reset sweep, so their reset parameter is pulsed along with everything else.
SerialSerial on / offoff Include Serial DATs in the reset sweep, so their reset parameter is pulsed along with everything else.
OSC InOscin on / offoff Include OSC In DATs in the reset sweep, so their reset parameter is pulsed along with everything else.
OSC OutOscout on / offoff Include OSC Out DATs in the reset sweep, so their reset parameter is pulsed along with everything else.
ScriptScriptdat on / offoff Include Script DATs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.

COMP

ControlType / defaultWhat it does
ReplicatorReplicator on / offoff Include Replicator COMPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.
Flex SolverFlexsolver on / offoff Include Flex Solver COMPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.
ActorActor on / offoff Include Actor COMPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.
Bullet SolverBulletsolver on / offoff Include Bullet Solver COMPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.
BaseBase on / offoff Include Base COMPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.
ContainerContainer on / offoff Include Container COMPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.
GeometryGeometry on / offoff Include Geometry COMPs in the reset sweep, so their reset parameter is pulsed along with everything else. Reset here means pulsing a custom parameter named Reset or Resetpulse. The list of names it looks for is editable under Misc, Edit Custom Reset Pars.

Misc

ControlType / defaultWhat it does
Reset TimelineTimeline on / offoff Also send the root timeline back to Reset Frame when a reset runs.
Reset FrameFrame number0 The frame the root timeline jumps to, when Reset Timeline is on.
CallbackCustomscript on / offoff Also run your own callback on each reset, so a tool with no reset parameter can still be handled.
Create CallbacksCreatecallbacks button Create a callbacks DAT beside this component with an onReset stub to fill in, and point the parameter below at it.
CallbacksCallbacksread-only operatorempty The DAT holding the onReset callback. It points at the shipped default until you make your own.
Static ExceptionsOpen2 button Edit the static exception list: name patterns that are never reset, whatever else is set. Prefix each with '^'. Re-save the component after adding rows, or they are lost with the session.
Edit Custom Reset ParsOpen3 button Edit the parameter names this tool treats as a reset on COMPs and Script operators. Defaults are Reset and Resetpulse; add your own component's name here to make it resettable.
Externalize TablesExternalizetables on / offoff Keep this component's tables in files on disk rather than inside the project, so the same exceptions and reset-parameter names follow you between projects.

About

ControlType / defaultWhat it does
ReadMeOpen button Open this tool's README.