Skip to content

TD

25-08-22 - Today I Learned...

TD

If you want to run a python command in an execute with a delay we can use run('op("opname").par.resetpulse.pulse()',delayFrames=180)

SpoutCam

We can use SpoutCam to flip the camera to use it flipped in MediaPipe. That also allows us to crop our camera image in TD and send it different image a virtual camera input into mediapipe

MediaPipe

If you only want to track a certain area you can

25-08-15- Today I Learned...

TD and Stream Diffusion

In TouchDesigner Stream diffusion the Step parameter defines how close the output is to the original input. The higher the step value the closer it tries to go towards the orginal input.

If you want something really abstract you want values between 10-15

Also using a Feedback as the input for Stream Diffusion makes the transition smoother.

If you add some noise as background or multiply your input into sd with noise you get more detail. If you animate the noise it keeps the output moving a bit all the time.

TD and Feedback Loop

Always try your feedback loops with 16bit or 32bit so your feedback comes back to true black after time.

TD Panel

If you have multiple radio buttons inside a component and you want to access the current value of the radio value via scripting you can use op('parentName').panel.radio