Alex Printz
Forum Replies Created
-
Alex Printz
March 21, 2019 at 3:53 pm in reply to: Failed expression because of the identical comp namesNo, there is no way to fix this by default. You could potentially build a script to append names with a specific string ((something like select the bin, script looks for all comps and adjusts the layer name).
Alex Printz
Mograph Designer -
no, but I’ve seen a simple plugin script that will ‘bake’ repeats into seperate elements (basically duplicating the content and applying the repeat properties into the transform properties) so that you can animate them individually. Never used it, but it is a ‘pay what you want’ so you could test it out for free:
https://aescripts.com/shape-repeater-baker/
Alex Printz
Mograph Designer -
Alex Printz
March 15, 2019 at 2:41 pm in reply to: Continuous linear movement that starts and stops on a checkboxAre you sure that it is not working for you? I just copy+paste’d my code into a shapelayer’s position and rotation, and it worked fine in both of those. Are you getting any sort of error?
Alex Printz
Mograph Designer -
Alex Printz
March 13, 2019 at 8:51 pm in reply to: limit a string-length by the length of another stringIt’s going to be difficult to split the second by characters based on pixel length because different characters will have different widths; “I” and “W” are greatly different. There is no set way to do this outside of unicode, so unless you are going to do a look up table I don’t think it will work.
One (IMO not worth it option) would be to do a for loop; find a way to emulate your subtitle’s sourceRecAtTime’s width (since you can’t actually measure it before rendering your sourceText), then comparing that to your main title’s sourceRecAtTime, then if the subtitle is longer drop a letter, check again, and keep doing that loop until it is not as long. I do not recommend this though.
If you want to stop editors from writing too long of text strings, why don’t you try generating a mask that cuts off any content beyond a certain limit? Now that we have path data access, you could generate a mask that has the same width as your title’s sourceRecAtTime.width. There are tutorials online for generating paths and masks this method, just need to get the anchorPoint and sourceRec involved.
Alex Printz
Mograph Designer -
Alex Printz
March 13, 2019 at 2:10 pm in reply to: limit a string-length by the length of another stringAre you trying to subdivide by sting length? SourceRec is a pixel-width, not a character string length, so it’s probably returning several hundred pixels for w.
If you’re actually trying to do text character length, you could try it like this:
v = value;
w = thisComp.layer("first text-layer").text.sourceText.length;
v.slice(0,w);Alex Printz
Mograph Designer -
Alex Printz
March 13, 2019 at 1:56 pm in reply to: Continuous linear movement that starts and stops on a checkboxYou were really close, you just need to check if the checkbox controller is active at that specific frame:
var pos = 0;
var check = effect("Checkbox Control")("Checkbox");
var frames = timeToFrames(time,25)
var speed = 5;for (var i = 0; i < (frames); i++){
if (check.valueAtTime(framesToTime(i)) == 1){
pos += speed;
}
}[pos,0];
Also, I think you can drop your timeToFrames FPS property (25), unless specific, the function will default to the comp framerate.
Alex Printz
Mograph Designer -
You cannot push values into keys, only pull. You would do like this:
t1 = key(1).time;
t2 = key(2).time;v1 = 0;
v2 = thisComp.layer("control").effect("example")("example");linear(time,t1,t2,v1,v2)
note that you cannot adjust the curves with this; you are only looking at when these keys are set.
If you want to be able to adjust the slope, set the keys to have different property values (e.g, Key 1: 100, key 2:200), and try this:
p1 = key(1).value;
p2 = key(2).value;v1 = 0;
v2 = thisComp.layer("control").effect("example")("example");linear(value,p1,p2,v1,v2)
Note this second expression depends on the keys having different input property values and understanding that your property is going to convert the change in property values into a similar change between your two defined values!
Alex Printz
Mograph Designer -
Alex Printz
March 6, 2019 at 4:08 pm in reply to: Is there an expression that tells AE to automatically trace a specific pre-comp as masks?can you post some screenshots of what you are looking for? Are you trying to mask the edge of the precomp footage of the mask (essentially a box) or are you trying to automatically mask a complex humanoid shape?
If it is the first (box via footage), I should have the expression for you.
If it is the second (humanoid), no, I don’t think there is a way to automate it, you will need to run a rotobrush across the footage.
Alex Printz
Mograph Designer -
Alex Printz
March 4, 2019 at 6:44 pm in reply to: Controling time remaping with position data of the null…also you’re going to need to change the variable input properties, my comments (e.g.,) need to be removed; I was using that for discussion purposes, rather than direct copy-paste.
That code I wrote is a rather quick idea on how to demonstrate animating in/out of different values. It’s going to require a lot of tweaking to get stuff to act how you want.
Alex Printz
Mograph Designer -
Alex Printz
March 4, 2019 at 6:41 pm in reply to: Controling time remaping with position data of the nulltry to rename the code to your null’s name (it is “NULL” right now; make it “Null” like the alyer name).
Then, make 3 keys; you can change it later. If you don’t keys set, the code doesn’t know what to grab and will throw an error.
Alex Printz
Mograph Designer