Expressions/Scripts/Presets

Search found 12 matches

by CodingAe
Mon Nov 20, 2017 10:58 am
Forum: Expression Discussion
Topic: Source Text to Image Size
Replies: 3
Views: 17

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: 45

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: 2
Views: 20

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: 2
Views: 20

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: 17

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: 45

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: 131

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: 131

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: 279

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.
by CodingAe
Tue Oct 17, 2017 8:26 pm
Forum: Expression Discussion
Topic: Help setting the render duration
Replies: 2
Views: 411

Re: Help setting the render duration

You can change the speed a layer, but can't change the duration of a layer using Expression. You can change the duration using ExtendScript, so if you go to the ExtendScript part of the site somebody should be able to help you. Unfortunately, I can't help in that language because I'm still learning ...
by CodingAe
Tue Oct 17, 2017 6:08 pm
Forum: Expressions Tutorials
Topic: Easy things to do with expressions #3
Replies: 2
Views: 21362

Re: Easy things to do with expressions #3

I sometimes use value or the nothing method to use the EE shortcut, so I can pick a certain property or properties in a layer. 
by CodingAe
Wed Oct 11, 2017 4:39 pm
Forum: Expressions Tutorials
Topic: Youtube Channel for Learning Expression
Replies: 2
Views: 279

Youtube Channel for Learning Expression

Hello fellow Enhancers, I've started a Youtube channel for tutorial on expression and rigging. There will be tutorials on extendScript in the future. You can check out my channel here: https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw In this video I'd talked about data types. I hope you like...