Infoseite // Expressions question



Frage von prem:


Hi
the following problem: I have 10 levels. The Bigger Plane to be animated on every 10 frames, and indeed of a random value between 190 and 210 to 100%.

How do I do that? I schaffs either only with keyframes (in which case I'm not a random value), or the size change in each frame, the random values.

How do I get a linear scaling of a random value to 100%?
(and while x-and y-value identical)

thanks
joe [/ b]

Space


Antwort von prem:

Hello
/ / 1.part = code for scaling, random value between 190 +210

start_fade = 0, / / start the scaling to 100% in Anz.frames
end_fade =. 10; / / by 10frames scaling = 100%
seedRandom (index, true);
sc = random (190.210);

/ / 2.teil = code for the linear scaling of the random value to 100% of Frame0 to 10

result = linear (time / 4, start_fade, end_fade, sc, 100);
[result, result]


Thus the first part you can get into all levels einfühgen.Alle plane happens to have a size between 190 +210!

the 2nd some you have to adjust.
expressions gradually makes fun :-)
gruss didgi

Space


Antwort von elfe:

Hello
here the whole a bit clearer

seedRandom (index, true);
sc = random (190.210);

T = time;
start_scale = 1, / / change the value in seconds <= d. Only those worthy of scaling random start value to 100%
end_scale = start_scale +0.4;

result = linear (T, start_scale, end_scale, sc, 100);
[result, result]


Space





slashCAM nutzt Cookies zur Optimierung des Angebots, auch Cookies Dritter. Die Speicherung von Cookies kann in den Browsereinstellungen unterbunden werden. Mehr Informationen erhalten Sie in unserer Datenschutzerklärung. Mehr Infos Verstanden!
RSS Suche YouTube Facebook Twitter slashCAM-Slash