Hi @bentraje I just came across this thread and quickly tested the above script in 2024. It still works as expected.
Without any further knowledge I would assume that A) you dont have a xpresso tag on your object or B) its not the the second tag on your object.
