Sending parameters once on initialization

Hi,

Is there a way to set the values of a TouchOSC object (xy slider) upon initialization of a TouchDesigner project?

I’d like to set the initial value of the XY slider at .5 .5, but then let the user adjust the value from the TouchOSC interface from that point forward without springing back to this value.

I’m using this as a DMX control for a moving light. If left at the default the moving light will slam to 0,0 when the program starts.

There doesn’t seem to be a way on TouchOSC Editor to preset the value of a control

Thanks!

Hi Bfirst786,

you can execute python code at the start of an TouchDesigner project with the executeDAT.
Put the toggle for the parameter “Start” to on and put your code in the function “onStart”.

In the screenshot you can se how this might look like.

I hope this helps.

Best wishes,
David

That is great, thanks!