Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: JennaReanne on December 25, 2013, 08:35:00 PM

Title: Accessing color correction curves
Post by: JennaReanne on December 25, 2013, 08:35:00 PM
Hello,
I'm using Color Correction Curves in my game, which is a post-processing script that goes on the camera (see reference here: http://docs.unity3d.com/Documentation/Components/script-ColorCorrectionCurves.html)

I'd like to access the Red/Green/Blue curves so I can change them at runtime, but can't figure out how.  I tried using the Get Properties action, but can't find any properties that seem to link to the three curves I'd like to change.  I'd be grateful for any suggestions, thank you!
-Jenna
Title: Re: Accessing color correction curves
Post by: Lane on December 25, 2013, 09:38:44 PM
Cool question!

It doesn't look like Get/Set Property supports AnimationCurve (from my rummaging in the assembly manager) but the Sample Curve action shows an FsmAnimationCurve so i tried changing it to use a variable but it doesn't allow it.

I don't see a way to transfer curves directly, and I don't think there's a way to build them on the fly with PM.

Looks like some additional functionality for curves needs to swoop in or you need a custom script, unless I'm missing something here.
Title: Re: Accessing color correction curves
Post by: jeanfabre on December 27, 2013, 05:33:36 AM
Hi,

 Yes, that will need some special actions. Can you not switch between several presets? that could be an easy way out, or are you looking for fine grain tuning?

bye,

 Jean