Flame Forum
Welcome to Autodesk’s Flame Family (Flame, Flare, Flame Assist, Lustre) Forums. Share your knowledge, ask questions, and explore popular Flame topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python import clips and colorspace tags

1 REPLY 1
Reply
Message 1 of 2
AndreasArtjail
343 Views, 1 Reply

Python import clips and colorspace tags

Hi, I'm using the Python API to import clips (flame.import_clips(...))  and I would like to tag the imported clip with a Colourspace tag, is there a way of doing that? If I manually import a clip using the MediaHub I have the Colour Management set to "Tag Only" and "From Files or Rules" and that works as expected, but that does not seem to affect the Python import. Ideally it would use the rules defined in the Colour Policy, but I can make my own rules if there is a way from Python to set the tags needed. Using flame 2020.3 and CentOS 7.2. Any suggestions or ideas are much appreciated! Andreas
Labels (1)
1 REPLY 1
Message 2 of 2

Doing some more testing and it looks like if I am in the MediaHub tab and run flame.import_clips(...) it will assign Color tags, but if I do the same thing in for example the Timeline tab it will not. Seems inconsistent and also unmanageable for scripts running in the background.

 

I saw that in flame 2021.2 a  flame.set_current_tab() was added. So I imagine that something like this could work, but not very elegant. Dont have a 2021 install yet so cannot test it.

current_tab = flame.get_current_tab()
flame.set_current_tab("MediaHub")
flame.import_clips(..)
flame.set_current_tab(current_tab )

 

What I'm trying to accomplish is an Asset Library that automatically pulls in new clips, similar to how the watchfolder.py script works. But if I can not set Colourspace tags it will be less useful.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report