Jump to: Board index » General » Fusion

Automating image morphing via Lua script running on AWS EC2

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

citizen_45

  • Posts: 3
  • Joined: Mon Jan 21, 2019 12:29 pm
  • Real Name: Dawid Gdanski

Automating image morphing via Lua script running on AWS EC2

PostMon Jan 21, 2019 1:23 pm

Hey there,

I am evaluating Fusion to address the problem regarding images morphing.

The problem is the following: I have a sequence of images in the input that I need to morph and create a gif animation with smooth transitions in between the input images as the output.

Having watched the tutorials I know I can easily achieve the desirable effect using Fusion (using Optical Flow or Retiming tools).
Another challenge is that I would like to automate this process to generate the output animation on demand which means that command line is what I am looking for only.

Fusion offers scripting capabilities and I have managed to write simple Lua instructions in the console attached to the Fusion Application. I haven't succeeded with executing the standalone script via the fuscript application.

I have a few questions that I would be grateful for answering:

1. Is it possible to execute the standalone scripts via fuscript in free version of Fusion? Or is this capability available in the paid version only?
2. Given I succeed with generating the script transforming the input into the output, would there be any problems with running the script on GPU-optimized AWS EC2 instance with Fusion software installed?

Many thanks for the answers to my questions.
Last edited by citizen_45 on Tue Jan 22, 2019 9:02 am, edited 1 time in total.
Offline
User avatar

michael vorberg

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

Re: Automating image morphing via Lua script running on AWS

PostMon Jan 21, 2019 8:15 pm

external scripting is a Studio feature, not possible in the free version
Offline

Hendrik Proosa

  • Posts: 472
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Automating image morphing via Lua script running on AWS

PostMon Jan 21, 2019 8:41 pm

Wouldn't it be easier to manipulate/generate .comp script for each job and simply render it from command line on EC2 instance? You could use python or whatever for creating the comp, so you are not tied to Fusion directly.
I do stuff.
Offline

citizen_45

  • Posts: 3
  • Joined: Mon Jan 21, 2019 12:29 pm
  • Real Name: Dawid Gdanski

Re: Automating image morphing via Lua script running on AWS

PostWed Jan 23, 2019 2:31 pm

Hendrik Proosa wrote:Wouldn't it be easier to manipulate/generate .comp script for each job and simply render it from command line on EC2 instance? You could use python or whatever for creating the comp, so you are not tied to Fusion directly.


Hi Hendrik, thanks for the reply. Does generating the .comp script (Composition effectively) mean exporting manually created configuration in Fusion and launching the script that loads and executes the .comp configuration via command line?

I managed to export the examplary .comp composition but I could not launch it and receive the transformed output. I assume I need the paid version with full standalone scripting support in order to successfully execute the .comp configuration, is that correct?

Speaking of executing the .comp script on the EC2 instance, what you're describing is the solution for my case I believe.
I don't follow the sentence with being tied to Fusion though - the .comp extension is the format supported by Fusion so launching it would require using the prebuilt binaries coming with Fusion, right? Could you elaborate more on the dependency on Fusion please?

Many thanks,
Dawid.
Offline

Hendrik Proosa

  • Posts: 472
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Automating image morphing via Lua script running on AWS

PostMon Jan 28, 2019 10:03 am

citizen_45 wrote:Hi Hendrik, thanks for the reply. Does generating the .comp script (Composition effectively) mean exporting manually created configuration in Fusion and launching the script that loads and executes the .comp configuration via command line?

Yes, this is what I meant. As .comp file is simple text, you can generate them at will with simple text processing. And then run them as command line render tasks in Fusion.

I'm not sure about the free/studio version difference on command line execution, it should be possible to simply run Fusion headless without additional render nodes which come with studio version only.

citizen_45 wrote:I don't follow the sentence with being tied to Fusion though - the .comp extension is the format supported by Fusion so launching it would require using the prebuilt binaries coming with Fusion, right? Could you elaborate more on the dependency on Fusion please?

You need to install Fusion on your EC2 machine image. When you launch an instance, you can then use Fusion as usual and run command line rendering. You can't just run .comp file, it is Fusion composition that needs installed Fusion, just like AfterEffects project for example needs AE to do something with it.
I do stuff.
Offline
User avatar

michael vorberg

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

Re: Automating image morphing via Lua script running on AWS

PostMon Jan 28, 2019 4:41 pm

Even command line fusion won't run on a headless system. It will start a gui version of fusion and start rendering
Offline
User avatar

Pieter Van Houte

  • Posts: 338
  • Joined: Wed Nov 05, 2014 1:04 am

Re: Automating image morphing via Lua script running on AWS

PostMon Jan 28, 2019 5:12 pm

It can be done, check this post on WSL (links to further information): https://www.steakunderwater.com/wesuckl ... 163#p21163

Return to Fusion

Who is online

Users browsing this forum: keimiya, mouserd and 3 guests