basil.js

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

Basil.js and ExtendScript in Indesign / How can I style textFrames?

早过忘川 提交于 2019-12-12 03:39:58
问题 After the svg elements are placed/drawn in Indesign, I wanna change the style from some or all elements . In my example I style the textFrames while they are drawn. My example works. But how can I change the style after the textFrames are placed? I wanna use the skewing angle (applied to the TextFrame) and the rotationAngle (look in my example -> forLoop) I tried the following: r.textFrames.shearAngle=20; and doc.textFrames.add({shearAngle:20}); ...but both don‘t work. #includepath "~