Expressions/Scripts/Presets

Search found 18 matches

  • 1
  • 2
by CodingAe
Sat Dec 02, 2017 9:45 pm
Forum: Expression Discussion
Topic: Wiggle, how to use the output values?
Replies: 9
Views: 154

Re: Wiggle, how to use the output values?

Sorry for the late respond, but for these last two days I couldn't think of any way to use wiggle with another method like valueAtTime. The reason why I believe that After Effect is saying that "valueAtTime is not a function" is because After Effects is saying that there is error using val...
by CodingAe
Wed Nov 29, 2017 1:35 pm
Forum: Expression Discussion
Topic: Wiggle, how to use the output values?
Replies: 9
Views: 154

Re: Wiggle, how to use the output values?

That's weird, so what you are saying is that wiggle is not working at all. If you are trying use wiggle for the position value that's in the same layer then just use wiggle() without adding transform.position and it will work the same as writing transform.position.wiggle(). In theory since valueAtTi...
by CodingAe
Wed Nov 29, 2017 8:04 am
Forum: Expression Discussion
Topic: Wiggle, how to use the output values?
Replies: 9
Views: 154

Re: Wiggle, how to use the output values?

I'm not completely sure what you are trying to do, but this will make the first code work...


var x = timeToFrames(time);

if(x % 2 === 0){
  wiggle(12, 50);
} else {
  thisComp.layer("Layer 1").transform.position.valueAtTime(time-.04);
}
by CodingAe
Thu Nov 23, 2017 6:25 pm
Forum: Expressions Tutorials
Topic: Use an External Text Editor or IDE to code Expression
Replies: 0
Views: 120

Use an External Text Editor or IDE to code Expression

If you are tired of the pain of the Expression editor then learn how to use an external text editor to code expression in After Effects.

 
by CodingAe
Tue Nov 21, 2017 6:13 pm
Forum: Expression Discussion
Topic: Position Offset If Condition
Replies: 7
Views: 167

Re: Position Offset If Condition

Under the numX and numY variable (Note: You can get rid of numY, it's not doing anything): var row = thisComp.layer("Null 8").effect("Row Only")("Checkbox"); //Change this by pick whipping this to a checkbox control for X axis only var col = thisComp.layer("Null 8&...
by CodingAe
Mon Nov 20, 2017 6:51 pm
Forum: Expression Discussion
Topic: Position Offset If Condition
Replies: 7
Views: 167

Re: Position Offset If Condition

I've got it to work: You don't have to zero your anchor this time, but if you are going to use this code make sure that the image layers are the first layers in composition If you tried using the earlier code, I forgot to tell you that the layers had to be the first layers in composition so sorry ab...
by CodingAe
Mon Nov 20, 2017 10:58 am
Forum: Expression Discussion
Topic: Source Text to Image Size
Replies: 3
Views: 75

Re: Source Text to Image Size

I'm happy that you found it useful.
by CodingAe
Mon Nov 20, 2017 10:56 am
Forum: Expression Discussion
Topic: Convert Keyframe Values to Whole Numbers
Replies: 3
Views: 141

Re: Convert Keyframe Values to Whole Numbers

No problem, glad I could help.
by CodingAe
Mon Nov 20, 2017 10:37 am
Forum: Expression Discussion
Topic: Position Offset If Condition
Replies: 7
Views: 167

Re: Position Offset If Condition

The code above is made to make a perfect grid, but if you want more freedom to offset you use this: You don't have to set the transform anchor to 0 for this code, but it might make it easier to control: var numX = 2; // Change this variable for how many images you want in one row var numY = 4; // Ch...
by CodingAe
Mon Nov 20, 2017 10:15 am
Forum: Expression Discussion
Topic: Position Offset If Condition
Replies: 7
Views: 167

Re: Position Offset If Condition

This might be one way to achieve that. ***When using this code make sure that the values for the transform anchor for these images are both set at 0; var numX = 2; // Change this variable for how many images you want in one row var numY = 4; // Change this variable for how many you images you want i...
by CodingAe
Sun Nov 19, 2017 11:03 pm
Forum: Expression Discussion
Topic: Source Text to Image Size
Replies: 3
Views: 75

Re: Source Text to Image Size

You sure can. This is one way you might want to go about it. var temp = thisComp.layer("text").text.sourceText; // Pick whip sourceText from the text layer you want to use var num = Number(temp); // Number is a method that allows you to parse/convert a value to a number data type [num, num...
by CodingAe
Thu Nov 16, 2017 3:39 pm
Forum: Expression Discussion
Topic: Convert Keyframe Values to Whole Numbers
Replies: 3
Views: 141

Re: Convert Keyframe Values to Whole Numbers

Before you "Convert Expression to Keyframes" in 2 array transform properties like position, anchor, or scale you can use this var x = Math.floor(value[0]); // Math.floor will round down the decimals to a whole number var y = Math.floor(value[1]); [x, y] For transform properties with no arr...
by CodingAe
Sat Nov 04, 2017 2:51 pm
Forum: Expression Discussion
Topic: Leap year calculation
Replies: 3
Views: 193

Re: Leap year calculation

No problem, I'm glad I was able to help out.
by CodingAe
Thu Nov 02, 2017 5:52 pm
Forum: Expression Discussion
Topic: Leap year calculation
Replies: 3
Views: 193

Re: Leap year calculation

By using the date object already program in Expression, it will automatically give you the leap year once you reach a year that has a leap year. var d = new Date(2016, 1); // new Date(Year, Month) You can pick any year and month you want to start with. Pick the previous month from the month you want...
by CodingAe
Tue Oct 31, 2017 8:45 pm
Forum: Expressions Tutorials
Topic: Youtube Channel for Learning Expression
Replies: 2
Views: 401

Re: Youtube Channel for Learning Expression

Thank you ckgtw,
I'm glad you was able to get something out of that video, I definitely will make more tutorials.
  • 1
  • 2