How to rename tool with python script


#1

I’m having a hard time getting things to work in fusion with python script. It’s kind of poorly documented. I have tried TOOLS_Name property as the scripting guide suggested, but neither assigning a string nor use setattr works. Any help is appreciated.


#2

in python you use

comp.Background1.SetAttrs({"TOOLS_Name":"GREEN", "TOOLB_NameSet": True})

lua:

Background1:SetAttrs({TOOLS_Name="RED", TOOLB_NameSet = 1})

the secret is to set the “TOOLB_NameSet” attribute to True to change the name