Jump to: Board index » General » Fusion

how to select language used in Frame Render script?

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

IRakesh

  • Posts: 2
  • Joined: Thu Nov 21, 2019 9:13 am
  • Real Name: Rakesh Dimbola

how to select language used in Frame Render script?

PostThu Nov 21, 2019 11:09 am

Hello,

How can I use a python script in Frame Render Script ?
How does fusion know which language is used in the frame render script ?
It seems to default to Lua even though I have python installed.

Any help is appreciated.

Thanks.
Offline

Rezzimx

  • Posts: 679
  • Joined: Sun Jul 21, 2019 3:53 am
  • Real Name: Tymur Suleimanov

Re: how to select language used in Frame Render script?

PostTue Mar 31, 2020 3:08 am

up
i7-9700k 4.3GHz, 32GB RAM, SSD 1TB M.2, SSD 512GB M.2, GTX 1650(4GB), G24F 2 (1920x1080, 23.8", 165 Hz).
Windows 10 x64 Pro (Last Update), NVIDIA Driver Studio (Last Update), DaVinci Resolve FREE (Last Update).
Offline
User avatar

Bryan Ray

  • Posts: 2478
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: how to select language used in Frame Render script?

PostTue Mar 31, 2020 6:34 pm

The InTool scripts will always be Lua, but I believe you can use the cross-language techniques described in the Fusion 8 Scripting Guide:
https://documents.blackmagicdesign.com/ ... _Guide.pdf

Page 20.

I've never tried to run Python from there, but theoretically it should work.
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline
User avatar

Bryan Ray

  • Posts: 2478
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: how to select language used in Frame Render script?

PostTue Mar 31, 2020 6:37 pm

After a harder look at it, that may not work after all, as I don't think the Intool scripts have access to the composition or fusion objects, so they likewise don't have access to Execute().
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline
User avatar

Bryan Ray

  • Posts: 2478
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: how to select language used in Frame Render script?

PostTue Mar 31, 2020 6:45 pm

Nope, I was right the first time! Again, I don't have Python installed, so I can't verify, but...

Capture.JPG
Capture.JPG (55.29 KiB) Viewed 1442 times


edit: I do have Python installed on my work PC, although I don't have Fusion 16 or Resolve there:

Capture2.JPG
Capture2.JPG (38.1 KiB) Viewed 1442 times
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

Rezzimx

  • Posts: 679
  • Joined: Sun Jul 21, 2019 3:53 am
  • Real Name: Tymur Suleimanov

Re: how to select language used in Frame Render script?

PostWed Apr 01, 2020 5:34 pm

Yeah dude. This is what I need. You are just the top. Thank you very much.
But how to register in Frame Render Script to change Version (1,2,3,4,5,6)?
Image
i7-9700k 4.3GHz, 32GB RAM, SSD 1TB M.2, SSD 512GB M.2, GTX 1650(4GB), G24F 2 (1920x1080, 23.8", 165 Hz).
Windows 10 x64 Pro (Last Update), NVIDIA Driver Studio (Last Update), DaVinci Resolve FREE (Last Update).
Offline
User avatar

Bryan Ray

  • Posts: 2478
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: how to select language used in Frame Render script?

PostWed Apr 01, 2020 9:52 pm

SirEdric's already answered this one at We Suck Less, but for the sake of anyone else who comes looking for the answer, the Versions are locked when rendering, so it's not possible to access information about them or set them from the Intool scripts.

It can be done with a normal script using [toolname]:GetCurrentSettings() to query which Version is currently loaded and [toolname]:SetCurrentSettings(int) to load one of the Versions.
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline

Rezzimx

  • Posts: 679
  • Joined: Sun Jul 21, 2019 3:53 am
  • Real Name: Tymur Suleimanov

Re: how to select language used in Frame Render script?

PostFri Dec 31, 2021 1:14 am

Bryan Ray wrote:SirEdric's already answered this one at We Suck Less, but for the sake of anyone else who comes looking for the answer, the Versions are locked when rendering, so it's not possible to access information about them or set them from the Intool scripts.

It can be done with a normal script using [toolname]:GetCurrentSettings() to query which Version is currently loaded and [toolname]:SetCurrentSettings(int) to load one of the Versions.


Hello. Please tell me how to write to make it work. This is lua (Frame Render Script)
if (Mode == "Elastic") then
end
i7-9700k 4.3GHz, 32GB RAM, SSD 1TB M.2, SSD 512GB M.2, GTX 1650(4GB), G24F 2 (1920x1080, 23.8", 165 Hz).
Windows 10 x64 Pro (Last Update), NVIDIA Driver Studio (Last Update), DaVinci Resolve FREE (Last Update).

Return to Fusion

Who is online

Users browsing this forum: No registered users and 32 guests