Pen_​​of_​​RGB

This topic contains 1 reply, has 2 voices, and was last updated by  Gergely Fehér 9 months, 1 week ago.

  • Author
    Posts
  • #2925

    Joachim Sühlo
    Participant

    Pen_of_RGB only works for me with numbers, not with variables. Is there a trick?
    This works:
    _stift = REQ(“Pen_of_RGB 0 0 0.7”)
    xx = REQUEST (“PEN_OF_RGB”, “0 0 0.7”, _stift)
    This does not work:
    _blue = 0.7
    _stift = REQ(“Pen_of_RGB 0 0 _blue”)
    xx = REQUEST (“PEN_OF_RGB”, “0 0 _blue”, _stift)

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

  • #2926

    Gergely Fehér
    Keymaster

    Pen of rgb request needs a string with 3 numbers in it – so there is no trick. If you need to use variables with that, then you need to create your own “r g b” string with the str function first, and then use it with the request.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

You must be logged in to reply to this topic.