Skip to main content
Inspiring
August 18, 2022
Answered

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

  • August 18, 2022
  • 1 reply
  • 390 views

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

This topic has been closed for replies.
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;
}

 などと。

1 reply

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;
}

 などと。

Inspiring
August 19, 2022

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

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