This content has been marked as final. Show 3 replies
Could you post an annotated sketch of the various rectangles? It would help if you could give a couple of examples of how you imagine the input rect and the output rect will look.
I’m sure I’ll get this if I just work through it methodically but maybe someone will beat me to it. The following two links show the pre-scale and post-scale arrangement of rectangles drawn at 25% scale. Some notes:
The small colored boxes represent sprites within the LDM.
The bounding box around these sprites is calculated on the fly (the sprites are positioned by the user)
The main stage size is fixed.
The LDM sprite starting size is fixed but its position on the main stage is not (it can be scrolled by the user).
The LDM sprite must be scaled, rotated, and translated such that the bounding box (which scales within the LDM) achieves a best fit on the main stage.
PS: <soapbox>It would be nice if Adobe enabled inline picts or attachements. There have been a couple of times when I thought an illustration would help.</soapbox>
Bah, my bad. I figured this out except for the rotation and suddenly realized it wasn’t the best approach at all. The ultimate goal is to print the objects within the LDM but not include the empty space using Print-o-matic’s printStage method. Instead of a complex transform to scale the LDM to the stage and loosing tons of print resolution in the process, it’s much easier to resize the stage to match the bounding box, then move the LDM so the bounding box is centered on the stage. Print-o-matic will automatically handle the scaling and paper orientation for best fit based on the paper size. Once the print job is done just put everything back the way it was, print problem solved and no rectangles to worry about.