Skip to main content
Legend
August 18, 2022
Answered

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

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

This topic is closed to new replies. Start a new post to keep the conversation going.
ajabon grinsmith
ajabon grinsmithCorrect 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;
}

 などと。

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

 などと。

Translate
Legend
August 19, 2022

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

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

Translate