フォロー

選択アイテムが縦組みフレームグリッドのとき、行間を調整してフレームの横幅はそのままで行数を1つ増やす(InDesign)

app.doScript(function(){
app.scriptPreferences.measurementUnit=2054188905;
f=app.selection[0],s=f.parentStory,p=s.storyPreferences,A=0.70866141732283,B="lineAki";
if(p.frameType==1179087984 && p.storyOrientation==1986359924)
v=f.visibleBounds,b=f.textFramePreferences.insetSpacing,g=s.gridData,w=(100/f.absoluteHorizontalScale*(v[3]-v[1])-f.strokeWeight*2-b[1]-b[3]),u=g.pointSize*g.horizontalScale/100,t=g[B],n=(w+t)/(u+t),g[B]=(w-u*(n+1))/n,f.visibleBounds=v
},1246973031,[],1699963733);//

スレッドを表示

app.doScript(function(){
app.scriptPreferences.measurementUnit=2054188905;
f=app.selection[0],s=f.parentStory,p=s.storyPreferences,A=0.70866141732283,B="lineAki";
if(p.frameType==1179087984 && p.storyOrientation==1986359924)
v=f.visibleBounds,b=f.textFramePreferences.insetSpacing,g=s.gridData,w=(100/f.absoluteHorizontalScale*(v[3]-v[1])-f.strokeWeight*2-b[1]-b[3]),u=g.pointSize*g.horizontalScale/100,t=g[B],n=(w+t)/(u+t),g[B]=(w-u*(n-1))/(n-2),f.visibleBounds=v
},1246973031,[],1699963733);//

スレッドを表示
ログインして会話に参加
DTP-Mstdn.jp

DTP-Mstdn.jpは、DTP・デザイン・印刷に関わる人々のためのMastodonインスタンスです。特定分野の専門インスタンスですので、日々のつぶやき、耳寄りな情報の共有、ディスカッション、質問とその回答、役立つスクリプトなど、他では投稿しづらい内容も、思う存分トゥートしましょう!