Forum Replies Created

  • Greg Markovis

    December 18, 2019 at 12:04 am in reply to: sampleImage of 3D Layer

    Nope only these two shape layers. But you know what Dan, don’t bother anymore. I will find a way to just not to make this layer 3D. I feel like I’m wasting your time. I’m trying to reverse engineer expressions by looking at them visually trying to figure out what they mean when I really should start from the beginning by understanding code language.

    I would like to also thank you for everything that you do on this forum. For the last few days, I was digging through it and found many solutions by combining different expressions and you were always there.
    I’m going to leave one here maybe it would be helpful for someone someday.
    This expression applied to source text will display RGB,CMYK and HEX values.

    Thanks again

    theColor = thisComp.layer("Symbol Comp 1").effect("Fill")("Color") ;
    R= (theColor[0]),
    G = (theColor[1]),
    B = (theColor[2]);
    if (R<G) { R=G; } k = 1- Math.max(R, B);
    c = (1-R-k) / (1-k);
    m = (1-G-k) / (1-k);
    y = (1-B-k) / (1-k);
    r = Math.round(theColor[0]*255);
    g = Math.round(theColor[1]*255);
    b = Math.round(theColor[2]*255);
    str = (r*65536 + g*256 + b).toString(16);
    if (str.length &lt; 6) str = "0" + str;

    //*Outputs,delate if not needed*//
    //*RGB*//
    "R:" + Math.round(theColor[0]*255) + " G:" + Math.round(theColor[1]*255) + " B:" + Math.round(theColor[2]*255)+
    "\r"+
    //*CMYK*//
    "c:"+Math.round(c*100)+" m:"+Math.round(m*100)+" y:"+Math.round(y*100)+" k:"+Math.round(k*100)
    +"\r"+
    //*HEX*//
    "Hex:"+" #"+str

  • Greg Markovis

    December 17, 2019 at 7:10 pm in reply to: sampleImage of 3D Layer

    Ok thank you anyway. Maybe there is something wrong with my setup. I’m just gonna upload screenshot from my test comp maybe you can spot some obvious mistake

  • Greg Markovis

    December 17, 2019 at 6:36 pm in reply to: sampleImage of 3D Layer

    Thank you for the response ☺
    It doesn’t work form me here whats happening. When I apply your expression to Fill Color of my 2D Layer the point of sampling occurs to be somewhere around (0,0) of my composition not defined (100,500). When I zoom camera or change Z position of 3D Layer the point of sampling moves somewhere else.
    Maybe I didn’t express myself good enough (sorry English is not my first language).
    So what I’m trying to achieve is a steady point in my composition x,y dimensions that will sample 3D Layer whenever it will enter this point radius regardless of 3Dlayer Z position or camera Zoom amount. If 3D layer appears underneath this point it should be sampled. Like let’s say you would want to draw sampling point at the screen with a marker to stay at your monitor 2D space and sample layers beneath it.

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