Forum Replies Created

Page 55 of 65
  • Andrei Popa

    August 3, 2018 at 2:25 pm in reply to: Png problem in script GUI on Mac computer

    I will post here the part of the script that I think creates problems(the error was for the binary version, so the line count there is not really accurate). I hope you will get some idea about why it gives the error.
    var myNewPath = new File($.fileName).parent.toString() + "/Handwriting assets/" + myFont.selection.toString()+".jpg";
    var myFile = new File(myNewPath);
    var myShowPreview = myFontPanel.add("image",undefined,myFile);

    Basically I am trying to put a picture that has the same name as the selected element of the myFont dropdown list. The folder /Handwriting assets/, which contains the images, is in the same folder as the script. First, I thought the person who tested the script did not copy the folder with the images, but when I did that, I got a different error.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    June 29, 2018 at 1:32 pm in reply to: Linking color and then changing its brightness

    maybe this will help
    https://forums.creativecow.net/thread/227/36651#36671

    Andrei
    My Envato portfolio.

  • Andrei Popa

    June 21, 2018 at 10:10 am in reply to: Changing Keyframe value using Expresion

    You are treating the people on this forum like they owe you something. They don’t. And i don’t think anyone will answer your question if you post it like this. But what do i know? Good luck.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    June 21, 2018 at 8:18 am in reply to: Changing Keyframe value using Expresion

    I don’t want to be mean, but even if you are in a hurry, you should try to expose your problem as clear as possible and don’t emphasize on the “so please help me”. I feel like trying to figure out what you are saying because you took your time to write in bold some text that is totally outside your problem instead of actually thinking of a right way to present us what you need.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    June 21, 2018 at 8:13 am in reply to: For through expression

    the part with footage(“ColumnOne data.csv”).dataValue([0,0]); looks unknown to me. I suppose it s the not-so-new thing with using data in expressions. But i can help you with the script part. You should run another try for the second column. The try/catch tries something and if there is an error catches it and then executes the second part. So you have some code in the second part that throws an error. The try does nothing, because the error is not in the first part. So either use another try, maybe like this
    for(i = index-1; i <= thisComp.numLayers; I++){
    try{
    //Start using ColumnOne and continue through that column until you reach nothing.
    } catch(e) {}
    try{
    //Start using ColumnTwo and continue through that column until you reach nothing and stop.
    }catch(e){}
    }

    Or you could use a while. More elegant and less space for errors. something like while (condition met when column is done) for each column. If the thing you are looking for is the way to navigate through the columns, well, i helped you with nothing ???? But if that is what you were looking for, do tell, i could make a little research and maybe we can get this through.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    June 21, 2018 at 8:04 am in reply to: Sequenced opacity loss

    This should work
    frameDur = thisComp.frameDuration;
    initialTime = 3+(index-1)*frameDur;
    dur = 6*frameDur;
    linear(time,initialTime, initialTime+dur,100,0)

    Andrei
    My Envato portfolio.

  • center = [960,540]
    maxDistance =100;
    if (length(center,position)>maxDistance) center + maxDistance*(position-center)/length(center,position) else value

    However, if you go too far outside, the layer will act a bit strange before you get its position back inside the circle. The code was taken from here and altered a bit to fit your situation.

    Andrei
    My Envato portfolio.

  • Try app.project.activeItem.layer(1).effect.addProperty("Game Show Matte Controls")
    I also had this problem when trying to add it using the matchname but when i used the display name, it worked.

    Andrei
    My Envato portfolio.

  • I don’t think you can call a variable name in javascript. If, however, you put an object in there, like opacity, it works just fine. I think you need an object that has the .name and the .value properties. It also does not work if your value is an array, since javascript doesn’t convert the array into string before concatenating.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    April 20, 2018 at 10:34 am in reply to: Can I create an interactive pseudoeffect?

    Just out of curiosity. Making a real effect would be much harder than making a pseudoeffect?

    Andrei
    My Envato portfolio.

Page 55 of 65

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