How to set pageItem properties in Basil.js?

江枫思渺然 提交于 2019-12-12 10:17:07

问题


This is a follow up on this question.

How do I set pageItem properties like shearAngle in Basil.js? In ExtendScript it is:

myPageItem.properties = {
    shearAngle:20
};

or

myPageItem.shearAngle = 20;

What would be the Basil.js-ish equivalent?

What about nested properties like some preferences?

app.activeDocument.properties = {
    documentPreferences:{
        pageWidth:100,
        pageHeight:100
    }
};

来源:https://stackoverflow.com/questions/36723099/how-to-set-pageitem-properties-in-basil-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!