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

After Effects: The shortcut property mask of an AVLayer is not of type MaskPropertyGroup. #138

Open
RaymondClr opened this issue Nov 19, 2024 · 1 comment

Comments

@RaymondClr
Copy link

The mask property, which has the match name ADBE Mask Parade, has a propertyType of PropertyType.INDEXED_GROUP. It is expected to be a PropertyGroup, while its child properties are of the type MaskPropertyGroup.

For example: layer.mask.maskMode provides the correct type hint, but when executing the code, it fails to retrieve any values.

I used a third-party tool to demonstrate this hierarchy issue. This tool can read nested Property hierarchies and display them as JSON:
image

@zlovatt
Copy link
Member

zlovatt commented Nov 19, 2024

Yes, the current typedefs don't have any way to identify results accessed by matchnames or strings.

You can either check whether it's a MaskPropertyGroup after the fact, or access it from the layer via avLayer.mask (instead of avLayer.property("ADBE Mask Parade") to return the typed MaskPropertyGroup group.

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