Programmierung/Entwicklung
Illustrator: Legacy Text
funkturmmitte
Beiträge gesamt: 108 Dazu will ich: processLayersRecursive(app.activeDocument.layers); function processLayersRecursive(parent){ if (curLayer.locked){
curLayer.locked = false;
doc.selectObjectsOnActiveArtboard(); ilegacy.convertToNative(); // Absatzmarken entfernen
// https://forums.adobe.com/thread/2597426 var this_text_frame, this_text_frame; this_text_frame = text_frames[i]; this_text_frame.contents = new_string; ///////////////////////////////////////////////////////////////// //>=-------------------------------------- ////////////////////////////////////////////////////////////////// if(activeDocument.selection.length >0){
mySelection = activeDocument.selection; //initialize vars
initBounds = mySelection[0].visibleBounds;
ul_x = initBounds[0];
ul_y = initBounds[1];
lr_x = initBounds[2];
lr_y = initBounds[3]; groupBounds = mySelection[i].visibleBounds;
if (groupBounds[3]<lr_y){lr_y=groupBounds[3]} activeDocument.views[0].zoom = 1;
ScreenSize = activeDocument.views[0].bounds; ScreenHeight=ScreenSize[1] - ScreenSize[3];
screenProportion =ScreenHeight/ScreenWidth; cntrPos = [ul_x,ul_y];
zoomFactorH = ScreenHeight/mySelHeight; if((mySelWidth*screenProportion) >= mySelHeight){
zF = zoomFactorW;
//alert("zoomFactorW = "+zoomFactorW);
zF = zoomFactorH;
pixxxelschubser
eine kleine Anmerkung: app.executeMenuCommand ('clearguide'); app.executeMenuCommand ('unlockAll');