Skip to main content
Legend
Aug 18, 2022 7:54 AM UTC
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
Aug 19, 2022 3:35 AM UTC

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

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
Aug 19, 2022 3:35 AM UTC

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

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

 などと。

Translate
Legend
Aug 19, 2022 9:29 AM UTC

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

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

Translate