ID 467078 - Renaming tags via Python, with the setName() function, does not work

Follow

Problem summary
Renaming tags via Python, with the setName() function, does not work.

Customer reported version
Hiero 12.2v5

Customer reported platform
CentOS 7

Steps to reproduce

1) Open Hiero.

2) Import a clip (File > Import File(s)), and drag it onto the Timeline.

3) Open the Script Editor and run the following code:


tag_item = hiero.core.Tag('old_name')tag_item.setName('new_name')trackItem = hiero.core.projects()[0].sequences()[0][0][0]trackItem.addTag(tag_item)

4) This should create a tag on the clip on your Timeline. Click the tag icon on the clip and notice that the tag is named 'old_name'.

5) If you then try to rename the tag, it still is not renamed:


hiero.core.projects()[0].sequences()[0][0][0].tags()[0].setName('new_name_2')

 

Expected behaviour
The setName() function should rename the tag, so a tag named "new_name" should be created.

Actual behaviour
The setName() function does not rename the tag.

Workaround
Unknown.


Reproduced by support
This bug has been reproduced in:
Hiero 12.2v5 - Windows 10 - Linux CentOS 7 - Regression

Unable to reproduce bug in:
Hiero 12.2v4 - Windows 10 - Linux CentOS 7

Earliest version tested
Hiero 12.2v4
- This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why