Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AE Property shorthand #40

Open
bryab opened this issue Aug 3, 2018 · 2 comments
Open

AE Property shorthand #40

bryab opened this issue Aug 3, 2018 · 2 comments

Comments

@bryab
Copy link
Contributor

bryab commented Aug 3, 2018

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.

@pravdomil
Copy link
Collaborator

ok

@pravdomil
Copy link
Collaborator

open pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants