Skip to content

ComponentParam.getColorValue() throws an error instead of returning 0 when unsuccessful #29

Open
@endribrahushi

Description

@endribrahushi

I'm iterating through the properties of a component in Premiere Pro using ExtendScript. In order to detect whether a property is a color value, I'm calling getColorValue() as suggested in the documentation.

According to the documentation, this method is supposed to return 0 if the property is not a color. However, in practice, it throws an "Unknown error" exception when used on non-color properties.

This makes it difficult to safely check if a property holds a color value, and it contradicts the behavior described in the documentation.

Please clarify if this behavior is expected, and if not, consider updating either the documentation or the method implementation to align with the documented behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions