## Find and frame single tool via script

Movalex
Posts: 30
Joined: Fri Nov 03, 2017 5:36 am
Been thanked: 5 times

### Find and frame single tool via script

Hey!
Is there a solution to find and frame single tool the same way we do with CTRL+F on active tool, but with a script?
Currently comp.SetActiveTool shows the tool in the flow, but not in the center. Instead it should be perfectly centered, like the result of Find Tools operation on the screenshot.
You do not have the required permissions to view the files attached to this post.

SecondMan
Posts: 3010
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 18 times
Contact:

### Re: Find and frame single tool via script

I thought Composition:FindTool() was going to do what you are looking for, but it seems to add nodes instead... ?

Movalex
Posts: 30
Joined: Fri Nov 03, 2017 5:36 am
Been thanked: 5 times

### Re: Find and frame single tool via script

Unfortunately it just literally finds the tool by the name, so we can assign it to a variable and do some stuff with it. It has no connection with flow position.
However we can query flow.GetPosTable(tool), but that does not help either. I wonder if tool focus is possible with Fusion SDK...

SirEdric
Fusionator
Posts: 1457
Joined: Tue Aug 05, 2014 10:04 am
Been thanked: 31 times
Contact:

### Re: Find and frame single tool via script

Maybe this is what you're looking for?
viewtopic.php?f=6&t=990

SecondMan
Posts: 3010
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 18 times
Contact:

### Re: Find and frame single tool via script

SirEdric wrote:
Tue Feb 12, 2019 10:54 am
Maybe this is what you're looking for?
viewtopic.php?f=6&t=990

(It's where this started)

SirEdric
Fusionator
Posts: 1457
Joined: Tue Aug 05, 2014 10:04 am
Been thanked: 31 times
Contact:

### Re: Find and frame single tool via script

Hahahaaa....
-26.1453723,113.4211497

intelligent machine
Fusionista
Posts: 267
Joined: Fri May 13, 2016 10:01 pm
Location: Austin, Texas, USA
Been thanked: 11 times
Contact:

### Re: Find and frame single tool via script

That's funny
"Useless Loop"
Western Australia 6537
Australia

If I ever have the opportunity to name my own street...hmm?

SecondMan
Posts: 3010
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 18 times
Contact:

### Re: Find and frame single tool via script

That brings back memories...
SpoilerShow
It was one of the password riddles for a Fusion beta, back in the Eyeon days. Password riddles really rocked.

SirEdric
Fusionator
Posts: 1457
Joined: Tue Aug 05, 2014 10:04 am
Been thanked: 31 times
Contact:

### Re: Find and frame single tool via script

That's why I brought up that link again....

intelligent machine
Fusionista
Posts: 267
Joined: Fri May 13, 2016 10:01 pm
Location: Austin, Texas, USA
Been thanked: 11 times
Contact:

### Re: Find and frame single tool via script

check this out: viewtopic.php?f=6&t=2812&p=22095#p22095

SirEdric
Fusionator
Posts: 1457
Joined: Tue Aug 05, 2014 10:04 am
Been thanked: 31 times
Contact:

### Re: Find and frame single tool via script

'Useless Loop' at it's best...

SecondMan
Posts: 3010
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 18 times
Contact:

### Re: Find and frame single tool via script

I see you found a way to find and frame a single post

Nearly there!

intelligent machine
Fusionista
Posts: 267
Joined: Fri May 13, 2016 10:01 pm
Location: Austin, Texas, USA
Been thanked: 11 times
Contact:

### Re: Find and frame single tool via script

Nearly there? As in...... 250

SecondMan
Posts: 3010
Joined: Thu Jul 31, 2014 5:31 pm
Been thanked: 18 times
Contact:

### Re: Find and frame single tool via script

another Fusionista

intelligent machine
Fusionista
Posts: 267
Joined: Fri May 13, 2016 10:01 pm
Location: Austin, Texas, USA
Been thanked: 11 times
Contact:

### Re: Find and frame single tool via script

I just Patreonized WSL!