Jump to: Board index » General » Fusion

How to change Tool name with script

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

Richard Yao

  • Posts: 12
  • Joined: Tue Nov 18, 2014 8:10 am

How to change Tool name with script

PostSun May 22, 2016 10:19 pm

In the scripting reference, it says to change tool name, should use TOOLS_Name property, but I have tried setattr and simply assigning a string to TOOLS_Name, nothing works.
Offline
User avatar

michael vorberg

  • Posts: 943
  • Joined: Wed Nov 12, 2014 8:47 pm
  • Location: stuttgart, germany

Re: How to change Tool name with script

PostMon May 23, 2016 7:22 pm

in python you use
Code: Select all
comp.Background1.SetAttrs({"TOOLS_Name":"GREEN", "TOOLB_NameSet": True})


lua:
Code: Select all
Background1:SetAttrs({TOOLS_Name="RED", TOOLB_NameSet = 1})


the secret is to set the "TOOLB_NameSet" attribute to True to change the name
Offline

Richard Yao

  • Posts: 12
  • Joined: Tue Nov 18, 2014 8:10 am

Re: How to change Tool name with script

PostThu May 26, 2016 8:43 pm

in python you use
CODE: SELECT ALL
comp.Background1.SetAttrs({"TOOLS_Name":"GREEN", "TOOLB_NameSet": True})


lua:
CODE: SELECT ALL
Background1:SetAttrs({TOOLS_Name="RED", TOOLB_NameSet = 1})


the secret is to set the "TOOLB_NameSet" attribute to True to change the name


Thanks Michael,
It's weird, this forum doesn't seem to send e-mails when someone reply to your post. Sincerely, appreciate your help.
Offline
User avatar

Glenn Sakatch

  • Posts: 665
  • Joined: Sat Apr 13, 2013 5:36 pm

Re: How to change Tool name with script

PostSat May 28, 2016 8:13 pm

you have to ask the forum to email you with replys

There is a checkbox at the bottom of your posting page that says "notify e when a reply is posted"

I personally think it should default to on position.

Glenn
Offline

Richard Yao

  • Posts: 12
  • Joined: Tue Nov 18, 2014 8:10 am

Re: How to change Tool name with script

PostMon May 30, 2016 8:29 pm

Glenn Sakatch wrote:you have to ask the forum to email you with replys

There is a checkbox at the bottom of your posting page that says "notify e when a reply is posted"

I personally think it should default to on position.

Glenn


Thanks for the tip.

Return to Fusion

Who is online

Users browsing this forum: No registered users and 25 guests