Forum Replies Created

Page 1 of 2
  • Nicholas Joseph

    July 27, 2011 at 5:13 pm in reply to: scripting : creating comp

    Ohh…Bummer!

    Thanks for Checking!

  • Nicholas Joseph

    July 27, 2011 at 3:42 pm in reply to: scripting : creating comp

    HI hI HI !! 🙂

    Does anyone know how to change the label color of a item.
    I’m referring to the LABEL in the Project window and not the layers. Im trying to change the color to green after a comp has been processed and red if it was skipped.

    thanks

    NIK

  • Nicholas Joseph

    July 14, 2011 at 8:03 pm in reply to: scripting : creating comp

    app.project.item(i).selected = true;
    worked perfectly!!! Thanks!!

  • Nicholas Joseph

    July 14, 2011 at 6:42 pm in reply to: scripting : creating comp

    oh… I am trying to select a comp from the project window.

  • Nicholas Joseph

    July 14, 2011 at 6:02 pm in reply to: scripting : creating comp

    hiya dan! 🙂
    I have a quicky question for ya…
    Do you how i might be able to select a comp through a script….and toggle select.

    i tried _MMFolder.item(each).selected = true; but it doesn’t work.

  • Nicholas Joseph

    March 3, 2011 at 6:46 pm in reply to: getting cursor X and Y position

    Hi Dan
    Thanks for the response. 🙂

    I’m doing some stereoscopic work and I’m having trouble or should I say the client is having trouble seeing the pixel depth amounts that are set.

    So I created a script that will create a white dot… 1pixel X 1 pixel which sits with the original footage. When I add the 3d glasses effect at the end of the displacement setup and stuff..That white dot becomes a RED and a BLUE dot(because of the 3dglasses and displacement). The distance between those 2 dots equals the amount of pixel depth.(so foreground elements the dots are closer to each other and BG they are further away) What I am trying to do…is some how find the RED and BLUE dots in a comp (its on a black solid so they are the only 2 pixels in the entire comp) and measure the distance.(only the horizontal distance)

    What I was hoping is if I can get the cursor location and hook it up to the white dot so that the dot follows the cursor and gives feed back to a textLayer that shows the depth at the location of the cursor…but I am having trouble measuring the distance between the 2 dots now. Having the dot follow the mouse is going to be really slow because the comp is very heavy..so I have abandon that and just attached the dot to a Null…which works well.

    Do you know how I can measure the distance between the 2 pixels…
    I tried the sampleImage() but it gives me the color at a point instead of the location of the color in a comp.

    I’m hoping for something like….

    PixelRED = search the area for pixel with value RED <>
    LocationOfRedPixel = X and Y position

    PixelBLUE = search the area for pixel with value BLUE <>
    LocationOfBLUEPixel = X and Y position

    text = LocationOfRedPixel.X – LocationOfBLUEPixel.X

    Is that possible with scripting and expressions? I am reading up on pixelBlender for more answers…but any you can offer would be super awesome!

    Thanks Again,

  • Nicholas Joseph

    March 2, 2011 at 9:19 pm in reply to: scripting : creating comp

    hi Dan…. I was wondering if there is away to get the mouse position and feed it into a expression. I’m trying to get the X and Y position of the cursor and have a solid/Null/text layer follow the cursor around interactively.

    any tips tricks or a direction to headin would be greatly appreciated.

  • Nicholas Joseph

    February 22, 2011 at 7:28 pm in reply to: scripting : creating comp

    Oh I see.. That did work but its a little heavy on the memory. I have over a 100 layer. 🙂

    So there’s no other way to change the file path of a selected footage?

    Thanks for all your help Dan.

  • Nicholas Joseph

    February 22, 2011 at 12:42 am in reply to: scripting : creating comp

    Hi there Dan…Its been awhile 🙂

    Can you please help me with another issue I am having…

    I am trying to replace a footage with the same footage(updated) but in a different folder.
    Here is my test::

    var myFile = app.project.selection;
    var myFileName = myFile[0].name;
    var indexOfFile = myFileName.indexOf(“.”);
    var myFileFolderName = myFileName.slice(0,indexOfFile);
    var myFileLocation = myFile[0].mainSource.file;

    var selectFolder = Folder.selectDialog(“Select ReTarget Root”);
    var targetFolder = selectFolder.toString();

    targetFolder = targetFolder + “/” + myFileFolderName + “/” + myFileName;

    myFile[0].mainSource.file.missingFootagePath(targetFolder);

    The last line always errors out. Can you please look over my code and tell me where I went wrong.

    Thanks Again,

    NIK

    Thanks Theo…I shall look it up.

  • Nicholas Joseph

    February 2, 2011 at 10:30 pm in reply to: scripting : creating comp

    yesss.. that worked beautifully.

    Thanks Again for all your help.

Page 1 of 2

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