First python script

First python script

Anonymous
Not applicable
1,087 Views
3 Replies
Message 1 of 4

First python script

Anonymous
Not applicable

After 3three days digging into the Flame python API, here is a first simple script.
Reconstructs Blender beauty pass from an exr.
This is a version 1.0.

Enjoy.

https://github.com/fabiof17/flame-python-scripting

0 Likes
1,088 Views
3 Replies
Replies (3)
Message 2 of 4

stefan-g
Contributor
Contributor

Cool!

Thanks for sharing, Fabio.

Seems well commented as well, great!

Would you be willing to post it on the flamepy.com website?

Stefan

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi Stefan.
Yes, i'd gladly do it.
But before that, i'll partially rewrite the script.
By the way, i'm a real beginner on the QT side.
Your materials are the only resources i found.
I have a question about managing hooks. The canonical code to declare hooks seems to be what you find on the official flame python repo :

 

hook01.png

 

But you are doing it in a different way :

 

hook02.png

 

I'm kind of lost on that side 🙂

Fabio

0 Likes
Message 4 of 4

stefan-g
Contributor
Contributor

Hi Fabio,

 

Great, and glad that what i shared so far could help!

 

The difference between the 2 ways is a Flame version thing.

Up to 2019.2 it's the way i'm doing it in most scripts, since they were done prior to 2020, or to keep the compatibility.

Starting with 2020,  the new way was added (like found on the official repo)

 

Stefan

0 Likes