Script to Check if Parent Type is Master
Hello,
I'm using a script to resize objects in a document. Regarding primary text frames, the script edits both the frames present on the master pages and the occurrences on the linked pages. Therefore, the link is lost for position and size.
Is there a condition I could add to test whether the object's parent type is a master page, in order to target only these objects?

