Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Using CHOPS to animate HSV Adjust hue offset

Still a little green? Ask your beginner's questions here

Using CHOPS to animate HSV Adjust hue offset

Postby murilogdonin » Wed Mar 28, 2018 12:50 pm

I'm trying to animate the hue offset adjust to change the color of a gradient based on BPM. So for example it'll add +1 to the hue number every 4 beats, and after a chosen number it repeats the cycle. How can I make this? I tried used some CHOPS but when I assign them to the hue offset it doesn't work

Also can somebody explain me why a CHOP can control the Ramp TOP Phase but can't control the HSV ADJUST.

Thanks
Last edited by murilogdonin on Wed Mar 28, 2018 4:05 pm, edited 1 time in total.
murilogdonin
 
Posts: 5
Joined: Wed Mar 28, 2018 12:33 pm

Re: Using CHOPS to animate HSV Adjust hue offset

Postby raganmd » Wed Mar 28, 2018 3:14 pm

hi murilogdonin,

Do you have some sample code that you're working with that you can share? It's often easier to help with a simple example as a starting place.
raganmd
 
Posts: 1383
Joined: Thu Mar 28, 2013 5:21 am
Location: San Francisco, CA

Re: Using CHOPS to animate HSV Adjust hue offset

Postby murilogdonin » Wed Mar 28, 2018 5:40 pm

Actually I didn't know I would have to use code in this case. I'm totally new to Python, but I know a little (very little of C). In this case I think I'll need CHOP execute DAT (I still don't know how to make the BEAT CHOP trigger something, only the LFO), and the code I'll define a constant and make it run a for loop, every 4 beats.
murilogdonin
 
Posts: 5
Joined: Wed Mar 28, 2018 12:33 pm

Re: Using CHOPS to animate HSV Adjust hue offset

Postby nettoyeur » Wed Mar 28, 2018 5:50 pm

Ragan meant can you post the network what you have made so far - makes it easier to work together on it.
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1170
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Using CHOPS to animate HSV Adjust hue offset

Postby murilogdonin » Wed Mar 28, 2018 6:19 pm

Here it's
Attachments
Captura de Tela 2018-03-28 às 19.18.02.png
Captura de Tela 2018-03-28 às 19.18.02.png (279.58 KiB) Viewed 2838 times
murilogdonin
 
Posts: 5
Joined: Wed Mar 28, 2018 12:33 pm

Re: Using CHOPS to animate HSV Adjust hue offset

Postby nettoyeur » Wed Mar 28, 2018 6:41 pm

yeah - for future reference, an actual .tox/.toe file is much easier to work with than a screenshot
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1170
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Using CHOPS to animate HSV Adjust hue offset

Postby nettoyeur » Wed Mar 28, 2018 7:27 pm

Here's an example of every bar (so every 4th beat) changing the color of the HSV Adjust TOP
In 10 bars it goes through a hue offset of 0-360, and then starts over again.

Let me know if you have any questions in understanding this example!
Attachments
beat_hsvadjust.tox
(934 Bytes) Downloaded 119 times
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1170
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Using CHOPS to animate HSV Adjust hue offset

Postby murilogdonin » Wed Mar 28, 2018 9:51 pm

Thank you so much, exactly what I needed. My idea was very close, it was missing the Logic CHOP. One more question, it may sound stupid but why in this case I need to write op('nullx')[bar] but in others only dragging the OP works?
murilogdonin
 
Posts: 5
Joined: Wed Mar 28, 2018 12:33 pm

Re: Using CHOPS to animate HSV Adjust hue offset

Postby nettoyeur » Thu Mar 29, 2018 2:07 am

Actually you can always both drag or type.
If you read this tutorial on Referencing in TouchDesigner part I you'll understand a bit more on how to make these references between nodes.
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1170
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands


Return to Beginners

Who is online

Users browsing this forum: Google [Bot] and 20 guests

cron