[Submission] /for console slash-command [SUBMITTED]
Moderator: SecondMan
- Kristof
- Fusionista
- Posts: 874
- Joined: Thu Aug 07, 2014 1:30 pm
- SecondMan
- Site Admin
- Posts: 4780
- Joined: Thu Jul 31, 2014 5:31 pm
- Location: Vancouver, Canada
- Been thanked: 17 times
- Contact:
Re: [Submission] /for console slash-command
@Movalex - very nice idea, thanks!
But it can be a touch simpler, and this works across platforms:
But it can be a touch simpler, and this works across platforms:
- --[[
- tool script to get tool's ID. Useful if you do expressions
- or use a Reactor 'Slash For' script a lot
- and you don't want to keep in memory, that Resize tool is actually a 'BetterResize',
- and MaskPaint is actually a 'PaintMask'.
- Tool ID will be copied to the clipboard, and printed in the console
- ]]--
- tool_name = tool.ID
- bmd.setclipboard(tool_name)
- print(tool_name)
Re: [Submission] /for console slash-command
@SecondMan I tried to use your script in F16.1.1 but getting this error:
any idea why?
EDIT:
Adding
...ive\Program\Fusion\Settings\Scripts\Comp\Get Tool ID.lua:8: attempt to index global 'tool' (a nil value)
any idea why?
EDIT:
Adding
tool = comp.ActiveTool
first in the code made the script work again for me- Midgardsormr
- Fusionator
- Posts: 2015
- Joined: Wed Nov 26, 2014 8:04 pm
- Location: Los Angeles, CA, USA
- Been thanked: 3 times
- Contact:
Re: [Submission] /for console slash-command
It's a Tool script, not a Comp script. It must therefore be located in Scripts/tool and then run by right-clicking the tool in question and choosing it from the Script section of the context menu. Or you can do what you've done to run it as a Comp script. 

- BrainSmashR
- Posts: 30
- Joined: Fri Jan 18, 2019 4:15 pm
Re: [Submission] /for console slash-command
Does this script work in DaVinci?
I cannot for the life of me figure out how to get it to edit shading elements 2 and 3 (outline and shadow) for text+ clips....
I cannot for the life of me figure out how to get it to edit shading elements 2 and 3 (outline and shadow) for text+ clips....
- SecondMan
- Site Admin
- Posts: 4780
- Joined: Thu Jul 31, 2014 5:31 pm
- Location: Vancouver, Canada
- Been thanked: 17 times
- Contact:
Re: [Submission] /for console slash-command
Yup, works just fine in DaVinci Resolve. I'll answer this particular question in your Node editing topic.
- ShadowMaker SdR
- Fusionista
- Posts: 996
- Joined: Sun Sep 21, 2014 6:17 am
- Been thanked: 2 times
Re: [Submission] /for console slash-command
Do you mean on the timeline as well, or just in the Fusion page of Resolve?
- SecondMan
- Site Admin
- Posts: 4780
- Joined: Thu Jul 31, 2014 5:31 pm
- Location: Vancouver, Canada
- Been thanked: 17 times
- Contact:
Re: [Submission] /for console slash-command
In the Fusion page. Timeline didn't even cross my mind. Not sure how that would work, but it's an interesting thought.
- ShadowMaker SdR
- Fusionista
- Posts: 996
- Joined: Sun Sep 21, 2014 6:17 am
- Been thanked: 2 times
Re: [Submission] /for console slash-command
The timeline is a strange hybrid at the moment. You can right-click/animate, publish etc in Fusion clips, but they are all seperate compositions, so you cannot connect various attributes/values to each other. On the other hand, it appears that there are some timeline/clip related scripting options, so in theory you should be able to iterate through all the Fusion clips and collect a couple of values that could be manipulated. At least, that's what my layman's brain thinks.