Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
myGroup = app.selection[0];the strokes in the group are scaled (irrespective of the Transform Content setting). But in CS3, the strokes are simply moved to fit within the same bounds.
myBounds = myGroup.visibleBounds;
myBounds[2] = myBounds[0] + 1;
myGroup.visibleBounds = myBounds;
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
var myDoc = app.activeDocument;
resizeOverset();
function resizeOverset(){
myStories = myDoc.stories;
for (var j = myStories.length - 1; j >= 0; j--){
if (myStories.overflows == true){
// fit to content the last text frame in the thread
myLastFrame = myStories.texts[0].parentTextFrames[myStories .texts[0].parentTextFrames.length - 1];
myLastFrame.fit (FitOptions.FRAME_TO_CONTENT);
}
}
}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
function FlipFrameWithContent(frame,flipDirection,anchorPoint,applyToContent){
if(applyToContent){
frame.flipItem(flipDirection,anchorPoint);
}
else{
var newFrame = frame.duplicate();
newFrame.flipItem(flipDirection,anchorPoint);
for(var i=0;i<frame.paths.length;i++){
frame.paths.entirePath=newFrame.paths.entirePath;
}
newFrame.remove();
}
}
Copy link to clipboard
Copied