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?
scripting the placement of objects
Collapse
X
-
Originally posted by markczajkaI 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
"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
-
-
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
-
-
Comment
-
-
-
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_MAttached Files"With a rubber duck, one's never alone."
Douglas Adams, The Hitchhiker's Guide to the Galaxy
Comment
-
Comment