It works !! Thanks
So now I have this :
local sprite = app.activeSprite
local name1 = tag.name:match('^(.+)bad$')
local badTagName = nil
if name1 then
badTagName = tag.sprite.tags[name1 .. " bad"]
local function modifyTag(1)
tag.name = " good"
if badTagName then
That obviousely didn’t work. I gathered some piece of code here and there, not at random, but not really knowing if it fits together. It gives me this error :
attempt to index a nil value (global'tag')
Basically, I would like to look for a particular string in the tag name, and if the string is in the tag name, change it with another one.
change the word ‘adult’ for the word ‘kid’ would give