Forum Replies Created

  • Chris Street

    September 18, 2017 at 1:03 pm in reply to: Hex Code from text?

    That’s absolutely fantastic, works perfectly! Thank you so much 😀

  • Chris Street

    September 18, 2017 at 12:51 pm in reply to: Hex Code from text?

    Hi, thanks for your help but I’m not sure if I’ve done this correctly.

    The initial hex colour in the text layer is “ff0000” (red) but after implementing the code as below, the resultant colour ends up being a hex value of #2C3C7A (a luminous green).

    Have I done anything wrong here?

    Thanks for the assistance!

    hex_edited is the text layer (initally written as ff0000):

    "0x" + thisComp.layer("hex_edited").text.sourceText;

    Colour Control Expression:

    hexColor = thisComp.layer("hex_edited").text.sourceText;
    r = (hexColor >> 16)/255;
    g = ((hexColor & 0x00ff00) >> 8)/255;
    b = (hexColor & 0xff)/255;
    hsl = rgbToHsl([r,g,b,1]);

  • Chris Street

    September 1, 2017 at 6:28 pm in reply to: Pulling text from a .txt file

    Never mind my last post. I’ve now coded an app that deals with this 🙂

  • Chris Street

    August 19, 2017 at 7:23 pm in reply to: Pulling text from a .txt file

    Ah wonderful, so it had to be an absolute path. Many thanks, this aspect works now!

    A slightly different question now (sorry)…

    Within the same text file I would like to reference sizes of rooms/objects in feet and inches. How could I accommodate both single and double quotations within the file? An example would be :

    IMAGE3 = “Living Room”
    DESC3 = “5.93m (19’5″) x 3.45m (11’4″)”

    I know that it’s possible to include a single quotation if the text file is encapsulated with ” and “, and a double quotation if the text file is encapsulated with ‘ and ‘ – but is there a way for both instances to occur?

    Any help would be greatly appreciated!

    IMAGE3 = "Living Room"
    DESC3 = "5.93m (19'5") x 3.45m (11'4")"

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