Hue value won’t update as Math CHOP changes (Web Client → Text DAT → DAT to CHOP → Math → Circle → HSV Adjust)

Hi, I’m trying to drive the hue of a Circle TOP in TouchDesigner using data from an API. My node chain is:

webclient → text DAT → DAT to CHOP → Math CHOP → Circle TOP → HSV Adjust TOP

  • Text DAT receives a number 0–360 from the API.

  • DAT to CHOP converts it to a channel.

  • Math CHOP is set From Range 0–1 → To Range 0–1.

  • Circle TOP fill color is red.

  • HSV Adjust TOP Hue Offset is where I’m exporting the Math CHOP channel.

Problem:
What am I missing here? Why isn’t the Hue Offset changing as the Math CHOP value changes? I’ve tried Export CHOP and CHOP reference, and even when I choose “Current CHOP Value” it just goes to 0.

Thanks!

fastapi-td.6.toe (4.4 KB)

A couple things:

  • The DAT To CHOP as it’s configured in your toe file is always setting the value to 0 and it is the channel name that is being set by your randomly generated number [0-360].
  • Regardless of the input value, the Math CHOP is performing a 0 multiply on the incoming value, so they all get turned to 0 anyway.

I changed it to use a Constant CHOP instead of a Text DAT → DAT To CHOP, and also removed the multiple by 0 on the Math CHOP and it worked as expected:

fastapi-td.toe (4.2 KB)

Ahh that worked perfectly! Thanks man!:folded_hands:t5:

1 Like