Batch renaming of sequences is not possible

Direct setting is blocked: sequence.name = “newName” does not work.
The workaround via ProjectItem also does not work: projectItem.name = “newName” is also read-only.
Action API exists but cannot be executed.

There is createSetNameAction() for creating rename actions.
However, these actions cannot be executed in UXP (no execute() method available).

Hi,

When modifying element living on the timeline or in the project you typically have to:

  • Create an Action for what you need to perform
  • Lock access to avoid conflicting command with user interaction (see Project::lockedAccess)
  • Execute the Action(s) using the Project::executeTransaction
    • in the callback, add the action to the compoundAction object

Search on this forum, there are multiple examples on how to do it.

Thx !

2 Likes

Thanks a lot, that was the right tip. Problem solved!