I have items on layers on a master page. I also have items on a document which could be on the same layer as items on the masterpage.
I need to resize these items. How can I reference these items either as seperate masterpage items and document items or as items on a layer irrespective of which page/masterpage they physically exist on.
Items on a document page are myDoc.pages[i].myObject, those on master pages are myDoc.masterSpreads[i].pages[j].myObject. To do something with an object on a certain layer, you need to check the object's layer, something like