Its simple enough to set a tag via python, but I’m curious as to whether or not one can destroy a tag dynamically with python. Its quite possible I’m missing something in the documentation, it wouldn’t be the first time, but I haven’t found anything referring to it
It just is a list so using remove (value) on tags should be possible.
1 Like
Tags are stored as python sets - a data type that’s similar to lists
The biggest differences being that they’re unordered, and cannot have duplicates. As a data type this is handy for a number of reasons - as you might imagine.
Unlike lists, however, sets have a different method for removing items - they use a remove()
method which accepts the string name of the item you’d like to pull from the set.
e.g.
op('someOp').tags.remove('someName')
2 Likes