Types-for-Adobe icon indicating copy to clipboard operation
Types-for-Adobe copied to clipboard

AE Property shorthand

Open bryab opened this issue 7 years ago • 2 comments

Sorry I keep making all these issues. I'm trying to convert a ton of old scripts to Typescript and finding all kinds of fun things.

One is that in the AE api, there is a kindof shorthand when dealing with Properties.

For example, you can create a "Checkbox Control" property:

var p = layer.effect.addProperty("Checkbox Control");

And you can manipulate its sub-property "checkbox" like this (which doesn't work with current typings):

p.checkbox

or, you can do it like this:

p.getProperty("checkbox")

To get this to work in Typescript, you'd need all of AE's effects in your typings, which is a heavy order considering that none of this is documented.

bryab avatar Aug 03 '18 15:08 bryab

ok

pravdomil avatar Aug 03 '18 16:08 pravdomil

open pr

pravdomil avatar Jun 24 '20 10:06 pravdomil