Movabel Hotspot in Array

Home Forums Problems and solutions in GDL Graphical editing Movabel Hotspot in Array

This topic contains 2 replies, has 2 voices, and was last updated by  Frank Studzinski 1 year, 11 months ago.

  • Author
    Posts
  • #1733

    Frank Studzinski
    Participant

    I’ve started to create an object with several “movable Hostpots”.
    To avoid having to much Parameters i would like to use an array
    to store the values.

    hotspot2 0, _wh1y, 1, “_wh1[1][1]”, 1+128
    hotspot2 -1, _wh1y, 2, “_wh1[1][1]”, 3
    hotspot2 _wh1[1][1], _wh1[1][2], 3, “_wh1[1][1]”, 2

    unfortunately it didn’t work.
    Is something wrong in my script, or is it impossible?

  • #1735

    Gergely Fehér
    Keymaster

    There are 2 problems in your script:
    1. If the values of _wh1y and _wh1[1][2] is not equal, then your hotspots are not inline, so editing can not work. Use the same 2nd coordinates in all lines.
    2. You shouldn’t put “_wh1[1][1]” in quotation marks, delete them.

    Besides these, starting parameter names with underscore is not recommended.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

  • #1739

    Frank Studzinski
    Participant

    Thank you!
    The quotation marks were my problem,
    because it works with them for regular paramters.

You must be logged in to reply to this topic.