Possible to supply a hex value to solid's color property?

I know the AE Scripting Guide specifies that we have to supply an array of RGB values if we wish to change a solid's color property.  I'm just curious if it is possible to supply a hex value in lieu of an RGB array.  Does anybody have any experience with a work around?
Thanks!

Dan,
Just wanted to add that I didn't realize your function assumed the hex color value would be passed in as `0xFFFFFF`.  My data was passed in as a string such as `FFFFFF`.  To fix, I just added one line:
function hexToColor(theHex){
  theHex = parseInt(theHex,16);
  var r = theHex >> 16;
  var g = (theHex & 0x00ff00) >> 8;
  var b = theHex & 0xff;
  return [r/255,g/255,b/255];
Thought this might help somebody who had the same data coming in question.  Thanks, again for the help.

Similar Messages

  • Adobe Illustrator CC 2014 not allowing me to change colors by typing in a precise hex value.

    Over the last two days, I have lost the ability to type in a hex value to the color picker to change an object's color.  Anyone else experience this and know of fixes?  I can select from the pre-made swatches or gradient-color picker field, but I need to be able to enter precise hex values per my style guide.

    JWoo,
    What happens if you use the Web Safe RGB from the Color palette flyout and insert the values there?
    For failures in general, you may try the list.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save curent artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Colour grade with Kuler RGB or Hex values

    Is there a grading/colour correction effect in PPRO which allows you to map midtones/shadows/hilights to an RGB or Hex value such as one acquired through Adobe Kuler? If not that easily, how could one use the swatches (RGB values) from Kuler as a palate in grading in PPRO? Thanks :)

    I'm not the person to answer questions about color correction, but I did want to mention that PPro has many color correction capabilities. See
    these free tutorials to see what is possible.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Safari web inspector -- show colors as hex-value codes?

    Is it possible to set the Safari web inspector so that it shows color codes as hex values (e.g., #e5e5e5) instead of rgb values (229,229,229)? I haven't found anything in the menus, but perhaps there's a variable somewhere that can be set through the command line?

    https://bugs.webkit.org/show_bug.cgi?id=13516
    It's not a high priority bug however, so don't get your hopes up
    Make sure to send your feedback as well.

  • Assigning a hex value to a variable and getting binary value of a variable.

    I try to develop java programs and I need to do a conversion unicode to EBCDIC and vice versa.
    How can I assign hex values to variables to build UTF-EBCDIC and EBCDIC-UTF table and get hex or binary value of data to compare it to value of in the table?
    I did a conversion like this with PL/1 before. I do not know how can I do it with Java. Because I am new to Java.
    Thank you in advance.

    I will run java code in mainframe and java uses
    unicode for data in default and mainframe environment
    is EBCDIC. So I have to translate the data from
    unicode to ebcdic.I said I think String supports EBCDIC encoding...
    String ebcdic = new String(ebcdicBytes, "Cp500");
    http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html

  • Fbl5n profit center is cracked   , itz possible to get profit center value

    fbl5n profit center is cracked u  , itz possible to get profit center value
    in ur zfbl5n report
    der r few changes in program to b made
    Message was edited by:
            Ronei Shedi

    Hello Ronei,
    No need to make a copy of the FBL5N to have the profit center in the list.
    You can have it in the ALV Layout.
    Select profit center in the Hidden fields column and pass it to left hand side column.
    Save as a Display Variant.
    Next time when you run the FBL5N, select your display variant in the last frame "List Output".
    Regards,
    Naimesh Patel

  • How to print the HEX values of non-displayable characters!

    I am trying to tokenize a string that contains non-displayable characters i.e. EBCDIC or ASCII. How can I print the HEX values of the non-displayable characters. e.g.
    "StartTEST1TEST2TEST3TEST4TEST5TEST6TEST7TEST812END"
    How can print the HEX values of in the above string. Any help is appreciated.
    Thanks

        char ch = 28; // or whatever character you want to look at.
        String hexString = Integer.toHexString(ch);
        System.out.println(hexString);

  • Hex value to Hex display

    I read in a text document from a server different HEX values ​​depending on the equipment i used. The Hex value is sent to a VI for TMT commands.
    And the entrance which must be presented as HEX display.
    I want to "convert" an appended path string with HEX value for example (0000 3D11 03) to HEX display (0000 3D11 03)

    Duplicate Post
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • How to Pass a HEX-Value to AdobeLifeCycle (TA:SFP) .

    Hello all,
    how to pass a HEX-Value to print a BLACK RIGHT-POINTING TRIANGLE?
    I want to pass a HEX value to AdobeLifeCycle (TA:SFP).
    This is done as follwoing:
    *-- Variablen
    DATA hex(2) TYPE x.
    SET BIT: 01 OF hex TO 0,
             02 OF hex TO 0,
             03 OF hex TO 1,
             04 OF hex TO 0,
             05 OF hex TO 0,
             06 OF hex TO 1,
             07 OF hex TO 0,
             08 OF hex TO 1,
             09 OF hex TO 1,
             10 OF hex TO 0,
             11 OF hex TO 1,
             12 OF hex TO 1,
             13 OF hex TO 1,
             14 OF hex TO 0,
             15 OF hex TO 1,
             16 OF hex TO 0.
    The HEX-VALUE ist u201E25BAu201C from the codepage 4110 = BLACK RIGHT-POINTING TRIANGLE, (use TA:SPC to see it).
    I set the HEX-VALUE before i call the PDF-OUTPUT:
    move hex to ls_frmglobal-hex. u201E(the field ist defined as u201ERAWSTRINGu201C)
    Then i call the Output;
    Now call the generated function module
    CALL FUNCTION fm_name
      EXPORTING
        /1bcdwb/docparams = fp_docparams
        frmglobal         = ls_frmglobal
        frmisu            = ls_frmisu
        frminf            = ls_frminf
        connections       = connections
        t_sums            = t_sums
      EXCEPTIONS
        usage_error       = 1
        system_error      = 2
        internal_error    = 3
        OTHERS            = 4.
    The result is u201E25BAu2018 instead of the BLACK RIGHT-POINTING TRIANGLE.
    Can any one have a idea what is goning wrong?
    I know how to print a Triangle on the Designer the quetion is how to pass the Hex-Value from a different codepage than the Stanndard codepage which we use.
    Thanks and regards
    Ibrahim

    I am trying to match \xfa which means that match faas
    a hex value.
    All I want to know is how to use the RE class tocheck
    for a cetain hex value.
    Correction:
    If the data is numeric, it can be matched using a hex,
    or octal representation for the regular
    expression. for instance, the numeric value 6 will be
    matched with either of the following regexes (hex,
    and octal, respectively). Read the API for
    the Pattern class if this doesn't make sense.
    "\06"
    "\006"(Should have checked first...)

  • Is it possible to assign a default value to an out parameter??

    Is it possible to assign a default value to an out parameter??
    Thanks in advance.

    pradeep.vupala wrote:
    I think ur looking for an IN OUT parameter?That won't help.
    A quick test is easy to check what happens :
    SQL> create or replace procedure myproc(p_out out number default 1)
      2  as
      3  begin
      4  null;
      5  end;
      6  /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE MYPROC:
    LINE/COL ERROR
    1/18     PLS-00230: OUT and IN OUT formal parameters may not have default expressions
    SQL> create or replace procedure myproc(p_out in out number default 1)
      2  as
      3  begin
      4  null;
      5  end;
      6  /
    Warning: Procedure created with compilation errors.
    SQL> show err
    Errors for PROCEDURE MYPROC:
    LINE/COL ERROR
    1/18     PLS-00230: OUT and IN OUT formal parameters may not have default expressions
    SQL>

  • How to Convert a HEX value to CHAR value...Unicode Issue...

    Hi,
    How can I convert HEX value to CHAR value.
    The Code in <b>non Unicode</b> system is:
    DATA: t_text LIKE tline OCCURS 0 WITH HEADER LINE.
    constants:   c_hex_20a5(2) TYPE x            VALUE '20A5'.
    t_text-tdline = 'seller of the item so listed.  A legend of the Seller Code(s) is as'.
          TRANSLATE t_text-tdline USING c_hex_20a5.
    The same code give error in <b>Uni-Code</b> system:
    <b>error is "c_hex_20a5 must be an character type object (C, N, D, T or String type)."</b>
    If anyone know, what is the solution, please let me know.
    Thanks!
    Puneet.

    Hi,
    Try declaring the Hex chars using the ABAP char utilities. This is just a sample piece of code on how to declare and use:
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    DATA:  ws_lf TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    data:    c_newline           TYPE x VALUE '0D'.  [ it is zero D, for carriage return ]
    ws_lf = c_newline.
        CONCATENATE it_tab-maktx
                    ws_lf
                    ws_template
                    INTO it_notificatn-template.
    Hope this helps...
    Regards
    Subramanian

  • SDIXML_DOM_TO_XML is giving hexa values not xml

    Hi all,
    As per the suggestion from Satish, I am using these FM to convert data> dom> xml.
    but the function SDIXML_DOM_TO_XML is giving hexa values
    Please advise.
    CALL FUNCTION 'SDIXML_DATA_TO_DOM'
    EXPORTING
    NAME = 'ACCESOS'
    DATAOBJECT = ACCESOS[]
    IMPORTING
    DATA_AS_DOM = L_DOM
    CHANGING
    DOCUMENT = M_DOCUMENT
    EXCEPTIONS
    ILLEGAL_NAME = 1
    OTHERS = 2.
    IF SY-SUBRC = 0.
    WRITE 'Ok'.
    ELSE.
    WRITE: 'Err =',
    SY-SUBRC.
    ENDIF.
    CHECK NOT L_DOM IS INITIAL.
    W_RC = M_DOCUMENT->APPEND_CHILD( NEW_CHILD = L_DOM ).
    IF W_RC IS INITIAL.
    WRITE 'Ok'.
    ELSE.
    WRITE: 'Err =',
    W_RC.
    ENDIF.
    --CALL FUNCTION FOR: put the XML data ino ITAB--
    CALL FUNCTION 'SDIXML_DOM_TO_XML'
    EXPORTING
    DOCUMENT = M_DOCUMENT
    IMPORTING
    XML_AS_STRING = W_STRING
    SIZE = W_SIZE
    TABLES
    XML_AS_TABLE = IT_XML
    EXCEPTIONS
    NO_DOCUMENT = 1
    OTHERS = 2.
    IF SY-SUBRC = 0.
    WRITE 'Ok'.
    ELSE.
    WRITE: 'Err =',
    SY-SUBRC.
    ENDIF.
    LOOP AT IT_XML INTO XML_TAB-D.
    APPEND XML_TAB.
    ENDLOOP.

    also,
    I am trying to write the XML file to file in app.server.

  • Converting a hex String to its corresponding hex value...?

    Yeah, I'm having quite a bit of fun guessing this one... :p
    I have a string of n characters and have used Integer.toHexString( ( int )str.charAt( i ) ) to convert each character to a string representing its hex value. Now I need to USE that value for bit-wise operations, like, say, applying the AND, OR, etc. operators...
    Example:
    hexvalue &= 0xC000FFFF; //the second value is the one extracted from the string;
    How can achieve this...? Any help is greatly appreciated... :}

    Since a Java char is numerically a Java short, you can apply bitwise operators to chars directly - the conversion to hex simply changes the way that the char is viewed; the result can also be viewed as a number in other bases.
    For instance, the char 'A' can be also be represented as any of the following values:
    binary - 1000001
    octal - 101
    decimal - 65
    hex - 41
    Likewise, 'Z' can also be viewed as
    binary - 1011010
    octal - 132
    decimal - 90
    hex - 5A
    "Anding" the letter 'A' with 'Z' ('A' & 'Z') or doing the same using any of the other representations will result in (binary 1000000, octal 100, decimal 64, or hex 40) - the bit pattern is the same, only the representation of the result varies.

  • Is it possible to insert a table value in query output?

    Hi,
    I am developing a query in which i have to display is a few values from a table in the output. I want to know if it is possible to directly get the values from the table thru the user exit and display in output or should i first put the values of the table into a infoprovider and get it from there in the query?
    Regards,
    Sujai

    Hi Sujai,
    You will have to put the values from the table into an infoProvider and then create a query on that infoProvider. Data from table cannot be directly shown in a query.
    Hope that helps!
    Regards,
    Saurabh

  • How to sum space delimited hex values in a string, and do other stuff?

    Hello
    I am trying to write a Bourne shell script that takes a non-constant-length character string as input, converts each character to hexidecimal value, sums each value, takes the two's complement of the sum, logically ANDS it with FF, and if any of the resultant "nibbles" are a-f, print/save that nibble as A-F, for later display as a two-character-long character string
    For example, assume a variable (as in non-constant) length variable $A
    A="w04:0;2"
    the road that I started down was to define
    B=$( echo $A | od -An -t x1 -N"${#A}" )
    # for this example, $B=77 30 34 3a 30 3b 32
    It's the middle part where I need some magic. What I want to do is add the whitespace-delimited hex values of this string, for this example
    C=77+30+34+3a+30+3b+32
    so for this example, $C=1b2
    then take two's complement of $C; for this example, $TWOS_COMP=ffff ffff ffff ffe4e
    and logically AND it with FF; for this example, almost-final answer is 4e
    then save final result as uppercase character string variable (for this example, variable's contents would be 4E)
    Is what I'm trying to do intuitively obvious to any of you gurus out there, that could rattle off an answer? I'm okay with trashing my approach thus far and trying something totally different, within the constraint that it run inside a Bourne shell script.
    Thanx in advance, if anybody can help!

    I've made progress. I've converted each character of a non-constant-length string $A into a space-delimited string of hex values, added them up, and retained the least significant byte (i.e., the 8 least significant bits). Here's how:
    B=$( echo $A | od -An -t x1 -N"${#A}" )
    D=0
    for C in $B; do
      C=0x$C
      D=$(($D + $C))
    done
    D=$(($D & 16#FF))
    D=`echo "ibase=10;obase=16;$D" | bc`
    The missing piece now is how to take the two's complement of $D. Anybody out there with any ideas on how to handle the two's complement piece inside a Bourne shell?
    Thanx

Maybe you are looking for

  • How to upgrade SAP Kernel in clustered environment

    I have a SAP R3 4.6 C installed on cluster environment, such that if one server goes down, the second clustered server takes the charge of all the resources from failing server. Also I have 6 application servers. This is the reason, I have to mantain

  • Write to Serial Port without splitting string data

    Hi, all, thank you for your help in advance. Problem: I am trying to write to the serial port with VISA write module. Somehow the string I tried to send was splitted before it was sent. For example, if I want to send "127", it sends "7', "2", "1". I

  • Unable to open catalog with access

    I had a few issues with my computer, so i backed up (copied) all files, pictures and the .psa files to an external disk. I would like to re-open these old catalogs and edit the paths to where the pictures are. I therefore tried to open up a copy of t

  • Method getCustomDatum() and Oracle thin client

    Hello All, I am using WL6.1 and an Oracle thin driver. I am using the Oracle Intermedia classes for Java in order to retrieve images for jsps and servlets. Trying to use the Oracle classes caused class cast exceptions. When using the weblogic.jdbc.ve

  • Illustrator Crash at launch

    Hi, My Illustrator CS5 keep crashing at launch all the rest of Adobe aplication works fine this is the report: Process:     Adobe Illustrator [307] Path:        /Applications/Adobe Creative Suite 2/Adobe Illustrator CS5/Adobe Illustrator.app/Contents