Open doug-walker opened 9 months ago
Hello Mr. Walker, Please forgive my ignorance but is there a script that converts a CTF to an AMF? I recently requested AMF export compatibility from Flame. From your email it suggests that one half of that equation (AMF to CTF) already exists. Respectfully, Phil MAN
Hi Phil, there is no script to convert a CTF to an AMF. In order to write something like that, there would need to be a way to define which operators apply to which steps in the AMF. The XML could contain this extra metadata but it would be a big task to define how it should work.
The script for the AMF to CTF direction is located along with the other tools in the repo here.
Thank you for the explanation Mr. Walker, I will look at the AMF to CTF script this morning. Respectfully, Phil
Thanks for the thorough description @doug-walker, just as an illustration I'm attaching an archive showing what I was thinking when mentioning the applied / un-applied looks categorisation might be unneeded. Note that I changed the AMF to apply the IDT and first 2 looks. The AMF CLIP colour space invert those 2 looks then the output transform always apply all looks for the shot using the SHOT_LOOKS environment variable. It is possible I overlooked some workflows / use case that would not work with this scheme, please let me know.
OCIO has a Python script (pyocioamf) that converts an AMF file into a CTF that implements the parts of the processing pipeline that the AMF file indicates still need to be applied. This has been useful for the community as a fairly complete open source implementation of AMF. However, this script does not fully meet the potential needs of AMF implementers for several reasons, including:
The next steps have been a topic of conversation at OCIO TSC meetings in recent months and the group felt that the best and most flexible approach would be to convert the AMF into an OCIO config rather than a CTF. The config would then allow implementers to apply any steps in the pipeline as desired. For example, they could explore advanced use-cases such as inverting steps that had already been applied or omitting steps (e.g. certain looks) that may no longer be desired.
The meeting discussions suggested the following mapping from AMF to OCIO config:
I'm attaching to this issue an example AMF file and a corresponding OCIO config that's in line with the discussions. There are a few details worth calling out:
We have a contributor that has kindly offered to implement this in OCIO, so we would appreciate timely feedback on the proposed approach. amf-example.zip