Forum Replies Created

Page 9 of 24
  • This will work if you want it to go from 0-25 based on the Comps height.

    x = value[0];
    y = effect(“Slider Control”)(“Slider”) * thisComp.height/25;
    [x,y]

    If you have a fiddle, you can update it so it doesn’t go below or above a certain height.

    If (effect(“Slider Control”)(“Slider”) > 5 && effect(“Slider Control”)(“Slider”) < 20){
    Above expression
    } else {
    Where you want it to go otherwise
    }

  • Scott Mcgee

    September 26, 2018 at 8:53 am in reply to: aerender script

    This appears to work using osascript, but is there a way using -noui?

    tell application “Adobe After Effects CC 2018”
    open “/Users/scott/Desktop/MessAround.aep”
    DoScriptFile “/Users/scott/Desktop/Source2.jsx”
    end tell

    Otherwise I’m nearly there.

  • Scott Mcgee

    September 25, 2018 at 11:44 am in reply to: Text box padding in only X value and not Y Question

    The expression isn’t wrong, it’s because the comma descends below the baseline, which adds more height to your text, which in turn makes the expression recalculate it self (sourceRectAtTime())

    Dan Ebberts addressed something for someone else a while back.

    https://forums.creativecow.net/docs/forums/post.php?forumid=227&postid=37002&univpostid=37002&pview=t

    Hope this helps.

  • Scott Mcgee

    September 10, 2018 at 7:48 pm in reply to: Create a bar which grows over time of the comp.

    Simple answer is no.

    You can only transfer so much over, but whatever the length of the project is in After Effects. Is what it will be.

    Ways around it, if you know that your projects are never going to be longer than say 60 seconds always. Make it 60 seconds.

    If using essential graphics, you can add a slider control that you can add length to for an outPoint, but if using dynamic link. It’s more of a pain but can still be done. But you have to do it using a text layer to reference.

    Also I’d use the expression in your scale if you literally want it to grow over the comp time

    linear(time,inPoint,thisComp.duration,[0,100],[100,100])

    I’d personally do it this way.

    a = effect(“Slider Control”)(“Slider”);
    linear(time,0,a,[0,100],[100,100])

    This only works with essential graphics though.

    For dynamic link

    create a text layer called scale. Then add this expression to the scale on your bar.

    a = parseInt(thisComp.layer(“scale”).text.sourceText);
    if(isNaN(a)){
    a = 1;
    }else{
    a;
    }
    linear(time,0,a,[0,100],[100,100])

    This is then editable in the effects controls in the master section of premiere to trigger, but I would only do it this way if you don’t have AE2017.2 or higher.

  • Scott Mcgee

    September 3, 2018 at 9:13 pm in reply to: parent layer vs position expression

    Kalleheikki

    I accidently came across this expression that does exactly what I want it to

    L = thisComp.layer(“Shape Layer 3”);
    r = L.sourceRectAtTime(time,false)
    L.toWorld([r.left + r.width/2,r.top + r.height/2]);

  • In that case.

    A few possibilities.

    If you want it anchoring and scale up from a corner. Or directly from the centre of the left position.

    Add one of the following to your AE project to it’s anchor point.

    Left/Top Corner
    r = sourceRectAtTime();
    [r.left,t.top]

    Left Centre
    r = sourceRectAtTime();
    [r.left,t.top + r.height/2]

    Left Bottom Corner
    r = sourceRectAtTime();
    [r.left,t.top + r.height]

    This will fix your anchor point and when you scale it will stay in the position you have assigned it.

    Now based on your message you are scaling in Premiere as in using the scale in Premieres effect control. If you are in CC 2017.2 (I think, it might be an earlier version. I’d use Essential Graphics and add a slider control to your scale layer). If you are on an earlier version that hasn’t got Essential Graphics. There’s still away but it’s a but more awkward.

    Create a text layer. Call it scale.

    Then in Scale of your text add the following.

    s = parseInt(thisComp.layer(“scale”).text.sourceText);
    if(isNaN(s)){
    s = 100;
    }else{
    s;
    }
    [s,s]

    Make sure you have check template for use with Premiere if you are on a version that doesn’t let you export as a text template, which is in export if it is.

    Then in premiere in effects control when you bring it in, it should have an additional section called Master control next to the effects control tab. This will allow you to type in the scale number you want from 0 – I think 10000, I can’t remember what the max number is. If you happen to put text in it though “TEST” for example the above expression will default to 100, but it doesn’t recognise it as a number.

    There’s a few other ways to do this, but the above two are the most efficient ways, Essential Graphics being the main one, but I know at home I’m stuck on CS5.5 so I have to do it the second way and both work flawlessly.

    If you decide you want the anchor and position to change. So it scale up from Top Left, Bottom Left or Centre. You’ll have to adapt the anchor point expression and a position expression, then again a a checkbox or text box, or even a slider control that will change on command.

    Dynamic link can only do so much in Premiere from After Effects and it doesn’t understand the individual layers, which is why you are having your problem.

    Hope the above helps. If not I’ll try and break it down a bit better.

  • Is this something that has been built in after effects then used in premiere? Otherwise I’m not sure how to help.

  • Just because I might have missed read this.

    If you want, when the shape width gets bigger and extends to the left. You need your anchor point to be situated to the right hand side.

    So in anchor point of your layer.

    r = sourceRectAtTime();
    [r.left + r.width, r.top + r.height/2]

    then pick whip the position to the null.

    Alternatively, if you want the position to move rather than the shape extending.

    I’d still use the anchor point expression as the anchor won’t sit still when it changes.

    Then in the position. I don’t know how much you want to move it by, which makes me think you want the 1st option.

    x = thisComp.layer(“Null 1”).transform.position[0] – content(“Rectangle 1”).content(“Rectangle Path 1”).size[0];
    y = value[1];
    [x,y]

    If you want it to start on the anchor point of the null, then you have to make some alterations.

    Hope that helps

  • Scott Mcgee

    August 29, 2018 at 3:00 pm in reply to: Dynamic orientation in dockable ui

    Ah,

    Is that definitely with a jsx UI panel? I know you can do that with a CEP html5 dockable panel. I’ve not seen it done with a script UI panel though.

    Alternatively if it’s an AE plugin, I wouldn’t be able to tell you, but most are written in C/C++.

    Although I’m still learning the language, I’m working with html5 panels, which I can install with a .zxp installer. I can guarantee it works with that, but I don’t know with Script UI

  • Scott Mcgee

    August 29, 2018 at 1:10 pm in reply to: Dynamic orientation in dockable ui

    I found this, as I was curious when I saw your post.

    I don’t know if there is a tidier way to do this, but this works. I tried breaking w.g up but it didn’t work. So you have something to start with at least that does work below.

    var w = new Window(“palette”, “test”, undefined, {resizeable: true});

    w.g = w.add(“group{alignment: [‘fill’, ‘top’], alignChildren: [‘fill’, ‘fill’], b1:Button{text:’b1′}, b2:Button{text:’b2′}}”);
    w.g.b2.onClick=function(){w.close();};
    w.onResizing = function () {
    var eps = this.size[0]

Page 9 of 24

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy