Skip to main content
Legend
August 18, 2022
Answered

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

  • August 18, 2022
  • 2 replies
  • 396 views

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

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer ajabon grinsmith

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

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

 などと。

2 replies

ajabon grinsmith
Community Expert
ajabon grinsmithCommunity ExpertCorrect answer
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;
}

 などと。

Legend
August 19, 2022

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

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