Pen_​​of_​​RGB

Viewing 1 reply thread
  • 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.12

    • #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

Viewing 1 reply thread
  • The forum ‘Informations from the environment’ is closed to new topics and replies.