-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of a transforming color effect is needed #13
Comments
I think you are on the right track. Hopefully my answer in #12 will get you moving again. Otherwise, the fade tests and chase tests are additional examples of cues layering on top of each other. You will be best served by coming up with some very simple ones that work with your lights and seeing what happens when you combine them. Using cues with a controller can be helpful in experimenting, and a fade that lets you turn the overlay cue intensity up and down by moving a fader or turning an encoder is informative too. |
As you seem to have discovered, transform-colors is precisely an example of doing this. You just need to get the effect running at the same time, and with a higher priority than another effect that is creating a color. The easiest way to experiment with layering effects, and turning them on and off, is to set up cues, and then just use the web interface to interact with the cue grid, since you probably don’t have an Ableton Push to play with. Have you tried that at all? |
Thank you for your help. Can I ask you to give any example of two simple effects, that work together, while modifying results of each other? Like I will help to understand, how do they work. I am guessing following, which has no effect:
|
You’re right, that approach won’t work. I’m afraid In the mean time, the Effect Lifecycle documentation is where I try to explain how this works. I think it may make more sense to you now than the first few times that you may have looked at it, because you are now trying to implement something that fits into it. And the overall description of how that lifecycle is used to render DMX values is explained in the Rendering Loop documentation. When an effect is running, it creates Assigners, which are the things that produce DMX values. The assigners get a chance to look at the value that any other, earlier effect has produced for the channel, color, rotation, or whatever it is they are supposed to assign, and can either use it, modify it, or replace it. Perhaps by looking over those pages, and seeing how the The part of (transform-colors (show/all-fixtures) :transform-fn (build-hue-transformation))
And after looking at it, I agree that |
Here is another example! The virtual dimmers that you wanted in #43 are implemented as a transforming color effect with simpler code than the above discussion. |
https://github.com/brunchboy/afterglow/blob/master/doc/effects.adoc#layering-effects
I use colors from default example. Like this:
(global-color-cue "red" 0 0 :include-color-wheels? true)
I want to create a simple transformation, based on already active effect (red color on all fixtures). For example, change hue to +50 (or lightness to -50). I guess I should add another effect with :priority, so they will start to work with each other. Can't find any example with 2+ effects working at the same time.
Going after
build-saturation-transformation
source is not returning any results in 2+ hours :)The text was updated successfully, but these errors were encountered: