Skip to content

Find and replace script fails when object has been renamed #4

@LeoneAC

Description

@LeoneAC

Suppose I am trying to replace some objects by an ellipse.

findAndReplaceGraphic_centered returns an error when one of the selected objects have been renamed somehow.

If we select two objects like <Ellipse> and <Path> everything goes well.

However, if one of them has a name, like <Ellipse> and FooBar, the script returns the following error:

Error 25: Expected: ].
Line: 1
-> subArray1["object"]=[PathItem FooBar]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions