Best way to find/access all the properties of a tool?

Moderator: SecondMan

User avatar
PaperEnigma
Posts: 1
Joined: Tue May 28, 2019 5:21 am

Best way to find/access all the properties of a tool?

#1

Post by PaperEnigma » Wed Jul 17, 2019 10:19 am

Hey Everyone,

I am looking for the best way to access tool properties for expressions in the UI. I am familiar with the standard "pickwhip" method as well as the over
over the name statusbar reveal. However, this does not always have everything you can access on a tool, example "Tool.Output.DataWindow" or "Tool.Ouput.OriginalWidth". Is there a method via the console or interface to get all access properties on a tool?

Also, is there a what to write multi line expression without having to create a script?

Thanks if advance for any advice
by Movalex » Thu Jul 18, 2019 5:55 am
According to Scripting manual, you can list all available inputs for the tool with GetToolList() command.
Here's a short Python snippet to list all avaliable ID's you can use for expressions for active tool:

Code: Select all

tool = comp.ActiveTool
all_inps = tool.GetInputList().values()
for inp in all_inps:
print(inp.GetAttrs()["INPS_ID"])
Go to full post

User avatar
Movalex
Sir Requestalot
Posts: 154
Joined: Fri Nov 03, 2017 5:36 am
Answers: 2
Been thanked: 44 times
Contact:

Re: Best way to find/access all the properties of a tool?

#2

Post by Movalex » Thu Jul 18, 2019 5:55 am

According to Scripting manual, you can list all available inputs for the tool with GetToolList() command.
Here's a short Python snippet to list all avaliable ID's you can use for expressions for active tool:
  1. tool = comp.ActiveTool
  2. all_inps = tool.GetInputList().values()
  3. for inp in all_inps:
  4.     print(inp.GetAttrs()["INPS_ID"])

User avatar
thibaud
Fusioneer
Posts: 142
Joined: Thu Sep 04, 2014 1:23 am
Been thanked: 4 times
Contact:

Re: Best way to find/access all the properties of a tool?

#3

Post by thibaud » Sat Jul 20, 2019 1:20 am

hooo looki here !
all the characters in da code have been greenified in da badass answer.
misa much preffer da nice calor of the original post my dear friend.