Itoo Software Forum
Forest Pack => Forest Pro (*) => Topic started by: P.Kuczynski on April 12, 2019, 04:44:31 PM
-
Hi,
I'm trying to generate a ForestPack Effect that will tint the colour of the objects depending on their random scale value: the bigger the object - the more tint strength it should get.
So far I came up with something like this:
vector Scale = fpItem.scale;
vector minScale = fpItem.randScaleMin/100;
vector maxScale = fpItem.randScaleMax/100;
fpItem.tintMult = easeinout(comp(Scale,0),comp(minScale,0),comp(maxScale,0),0,1);
But the result is that the tint only affects the biggest objects and their tint has 100% strength.
I want the tint strength to be softening gradually in corelation to scale.
The result is attached.
It acts as "fpItem.tintMult" was a boolean type attribute...
Regards,
Przemyslaw
-
Hi. Thanks for the question.
There seems to be some problems with fpItem.tintMult . We will check it.
Meanwhile You can use similarly fpItem.tintColor for the same effect.
Full effect code:
vector Scale = fpItem.scale;
vector minScale = fpItem.randScaleMin/100;
vector maxScale = fpItem.randScaleMax/100;
real clr = easeinout(comp(Scale,0),comp(minScale,0),comp(maxScale,0),0,1);
fpItem.tintColor = [clr, clr, clr];
(https://i.imgur.com/Om0PV6M.png)
Demo scene attached.
Hope this helps. And thanks again for reporting any issues You find.
-
Thanks Rokas! :)
That's a great workaround! I never thought of using ForestColor map to control mix amount of mixmaps.
Best regards!