视图
app.activeDocument.views[index]
Illustrator 文档中的一个文档视图,表示文档的窗口视图。
脚本无法创建新视图,但可以修改现有视图的某些属性,包括中心点、屏幕模式和缩放比例。
View.bounds
Section titled “View.bounds”app.activeDocument.views[index].bounds
只读。此视图相对于当前文档边界的边界矩形。
4个数字的数组
View.centerPoint
Section titled “View.centerPoint”app.activeDocument.views[index].centerPoint
此视图相对于当前文档边界的中心点。
2个数字的数组
View.parent
Section titled “View.parent”app.activeDocument.views[index].parent
只读。包含此视图的文档。
View.screenMode
Section titled “View.screenMode”app.activeDocument.views[index].screenMode
此视图的显示模式。
View.typename
Section titled “View.typename”app.activeDocument.views[index].typename
只读。引用对象的类名。
字符串
View.zoom
Section titled “View.zoom”app.activeDocument.views[index].zoom
此视图的缩放比例,其中 100.0 表示 100%。
数字(双精度)