Marc Rühl
Forum Replies Created
-
Marc Rühl
March 29, 2017 at 1:33 pm in reply to: Tell if a value is positive or negative without IF statement.Sorry Dan, I don’t get it. I only see how I could determine if a number is positive or negative using this code in an IF statement, but I didn’t want to use an IF statement.
-
Marc Rühl
March 29, 2017 at 1:31 pm in reply to: Tell if a value is positive or negative without IF statement.Perfect! Didn’t know try and catch before. I guess I should read into it. Thank you a lot Kevin.
-
So it seems I got everything working. I honestly have no idea if someone will find it useful, but I’ll post it anyways.
This example layer has a few keyframes on scale and a point control effect applied, which is called timer.
EXPRESSION 1 does all the magic and is applied on the point control effect. (It’s only a point control to get access to two values)
EXPRESSION 2 is applied on scale and
EXPRESSION 3 is applied on position and will make the layer jump to a new position every time the keyframes get “played”------------------------------------------------------
EXPRESSION 1PSEmin = 1;
PSEmax = 5;end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(PSEmin,PSEmax);
}
[start,end]------------------------------------------------------
EXPRESSION 2start = effect("timer")("Point")[0]
MT = time - start;valueAtTime(MT);
------------------------------------------------------
EXPRESSION 3maxX = 600;
maxY = 600;
start = effect("timer")("Point")[0]
seedRandom(start,true);
Xpos = random(maxX);
Ypos = random(maxY);
[Xpos,Ypos] -
Marc Rühl
March 20, 2017 at 12:26 pm in reply to: Expression to generate solids of different shapes to a grid?I guess you need a script for generating solids. Expressions can only control preexisitng objects.
But since this is the expression section I guess no one is able to help you here. -
I used one of Dan Ebberts Random Motion scripts to figure out the first part of this expression construction. I thought I should share it, since maybe someone else could find it helpful.
This expression will loop the existing keyframes of this property in a random timespan of 1 to 5 seconds.PSEmin = 1;
PSEmax = 5;end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(PSEmin,PSEmax);
}MT = time - start;
valueAtTime(MT);
-
Sorry I missed the tutorial part.
These are called Normal Maps. If you using a mac you can use a free software called crazy bump to create them. I don”t know which software to use on windows, but I know there are is a free photoshop plugin and some standalone software. Just google for normal map creator. -
Maybe you already know this tutorial, but I guess if you modify it it could be the look you try to achieve, If I understand you
-
The question is how the lights are arranged. Maybe you could post an example screenshot.
-
-
Im not at home for the next days, so I cant check it either, but Ill check it then. Again thank you a lot.