Skip to main content
Inspiring
August 18, 2022
해결됨

ExtendScriptでストーリーの組方向を変える

  • August 18, 2022
  • 1 답변
  • 390 조회

ExtendScriptでストーリーの組方向を変える方法はありますでしょうか?

이 주제는 답변이 닫혔습니다.
최고의 답변: ajabon grinsmith

対象のテキストフレームを選択した状態からとして、

var storyPref = app.selection[0].parentStory.storyPreferences;
if (storyPref.storyOrientation == StoryHorizontalOrVertical.HORIZONTAL){
    storyPref.storyOrientation = StoryHorizontalOrVertical.VERTICAL;
} else {
    storyPref.storyOrientation = StoryHorizontalOrVertical.HORIZONTAL;
}

 などと。

1 답변

ajabon grinsmith
Community Expert
Community Expert
August 19, 2022

対象のテキストフレームを選択した状態からとして、

var storyPref = app.selection[0].parentStory.storyPreferences;
if (storyPref.storyOrientation == StoryHorizontalOrVertical.HORIZONTAL){
    storyPref.storyOrientation = StoryHorizontalOrVertical.VERTICAL;
} else {
    storyPref.storyOrientation = StoryHorizontalOrVertical.HORIZONTAL;
}

 などと。

Inspiring
August 19, 2022

storyのでは無く、storyPreferencesにプロパティがあるのですね

ありがとうございました。