Top> Composite > Operation

Is there a way to change Operation choices ‘automatically’? I would like to have the Operation choices change every so often (2 minutes or so) then loop. There are 5 Operation choices that work well with my images (4 layers) and have tried to connect a button to Operation but it will not accept it. Thinking that Python is the answer but I do not know that language.

Thanks

If you look at the Operation parameter and hit the “+” you will notice that each Operation has a number (from 0 to 45).

0 = Add
1 = Atop
2 = Average

and so on.

You should be able to use this to control which Operation is showing and change that over time.

I’ve attached a basic network. The value of the Constant CHOP is going through a Math CHOP to alter the Range from 0-1 to 0-45.

If you grab the handle of the Constant/change the value between 0 and 1 you can quickly switch through all the Operations. The chan1 value from the Null CHOP is referenced in the Operation parameter of the Composite TOP.

BasicOperatorSwitch.toe (3.5 KB)

This is more complex. Constant1 CHOP is controlling the Index of the Switch CHOP, the Math CHOP is giving us 0-3, and now you can grab the handle on Constant1 and swap between the 4 preset Constant CHOP values.

BasicOperatorSwitch2.toe (3.7 KB)

1 Like

Very nice and thank you for responding. The second file (BasicOperatorSwitch2.toe) gets towards the solution. For some reason the file does not run through the 4 Constants (Constant 2,3,4,5) it just hang on 5. However, I can see the file and understand what what you have built. If and when I get it to run is there a way to add time to the Loop? That is, Constant 2 play for 2 minutes, Constant 3 play for 1 minute and so on?
I’ll go back to it and se if I can get it to run through the constants.
Thanks again, Jerry

Its not built to run automatically. Its just a basic demo of how to control the Operators from an external value.

There’s a CHOP called Cycle… take a look at that one for creating the loop. There are a few ways to accomplish this but that’s where I’d start.

Thank you so much! Was looking at Chop Pattern to run it with no success, will look at Cycle.

Using Pattern and Wave Chops I got the 4 Operators to cycle through but can’t find a way to time them. Any ideas would be welcome. Would upload a sample file but I’m a “new User”.

That is to say, I used Pattern Chop and Wave Chop separately to cycle through the 4 Operators. I read that the Wave Chop handles Time better then Pattern Chop but at this point working the various options on the Chops I have not been able to slow the cycling down much.

Hey @jerryhorn3 and @goblynn93 — I found this thread this morning while struggling to find a solution to automatically switch the values in a COMP. Jerry, your demos really saved me some time and frustration, and now I have learned something new. Brian, I am having the same issues you were - trying to control the timing of the loop. I’ve tried using the Timer, Cycle, and Pattern CHOPS, to no avail. Were you able to eventually solve the last step in the process?

Thanks for any advice you are able to share.

Jeff