scripting the placement of objects

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • markczajka
    Forum Member
    • Nov 2003
    • 35

    scripting the placement of objects

    I am new to AMS5. Is there a way to script the placement of objects onto a page? For example, instead of placing 100 graphic objects onto the page manually, is there a way to place the objects and the actions of the object onto the page using a script, if I have the coordinates?
  • TJ_Tigger
    Indigo Rose Customer
    • Sep 2002
    • 3159

    #2
    Originally posted by markczajka
    I am new to AMS5. Is there a way to script the placement of objects onto a page? For example, instead of placing 100 graphic objects onto the page manually, is there a way to place the objects and the actions of the object onto the page using a script, if I have the coordinates?
    The simple answer is yes you can do that. There was an example with I believe a web browser that all the buttons were placed on the screen based on the resolution of the screen displaying the project.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment

    • longedge
      Indigo Rose Customer
      • Aug 2003
      • 2496

      #3
      I played around with this concept some time ago in the preload using a for next loop and incrementing the x,y coordinates by different amounts to place objects in vertical, horizontal and diagonal lines.

      Having done it, I couldn't think of a use for it so it went on the back burner. I only used objects of the same size but obviously you could code some sort of checking in as well to accomodate varying size.

      If nobody else comes up with an example, I'll have a look when I get home and see if I can find what I did.

      Comment

      • rhosk
        Indigo Rose Customer
        • Aug 2003
        • 1698

        #4
        Check out Desmond's attachment.

        Scripting Object Placement
        Regards,

        -Ron

        Music | Video | Pictures

        Comment

        • longedge
          Indigo Rose Customer
          • Aug 2003
          • 2496

          #5
          There was a really good example of object positioning posted by Stefan HERE.

          Comment

          • rhosk
            Indigo Rose Customer
            • Aug 2003
            • 1698

            #6
            Yeah, forgot about that one, pretty neat!
            Regards,

            -Ron

            Music | Video | Pictures

            Comment

            • Stefan_M
              Indigo Rose Customer
              • Nov 2003
              • 315

              #7
              Just playing around:
              You need the XML und the ComboBox Plugin

              You can load an AM5 project with it.
              then select a page, after this you have to select an object.
              Now set the quantity of the objects you would like to multiplay
              and press the 'do it' button.

              the new elements will be renamed like 'originalname'..'_x'
              x: 1 to quantity

              Hint:
              1. Make a new project with one page and one object.
              2. Close AMS5
              3. run Objectcreator
              4. Open AMS5 and export the changed page


              Testet with an input object.

              Stefan_M
              Attached Files
              "With a rubber duck, one's never alone."

              Douglas Adams, The Hitchhiker's Guide to the Galaxy

              Comment

              Working...
              X