Jump to content
CameraBag & Fotograf Forums
ripienaar

Cinema LUT Parsing too strict

Recommended Posts

hello,

Many LUT .cube files I found from 3rd parties are in the form:

 

TITLE "foo"
LUT_3D_SIZE 64

0.0 0.0 0.0

This does not parse correctly, if I hand edit the LUT file and make it:

TITLE "foo"

LUT_3D_SIZE 64
0.0 0.0 0.0

Ie. just insert a blank line after TITLE and not after LUT_3D_SIZE it all works fine, this format you do not support seems popular and so it's quite a pain to use with your software.

Please allow both formats.

 

EDIT: Version 1.0.0 (EP)

Edited by ripienaar

Share this post


Link to post
Share on other sites

Various other combos of blank lines also confuse it, the example code from Adobe in the  Cube LUT specification 1.0 (CubeLUT.cpp example) just ignores all blank lines, you should probably do the same.

Share this post


Link to post
Share on other sites

We're not getting the same results, our files are loading correctly regardless of the arrangement of blank lines at the start. It might actually be some sort of line ending issue or something. Could you post a sample file that doesn't load correctly, or email one to us at support@nevercenter.com. Thanks!

Share this post


Link to post
Share on other sites

That's annoying, I'll see what I can do, the ones I have with this problem are commercial - so I might mail it to you instead

Any event, I fixed all my cube files by just doing this in a unix terminal:

 

find . -name \*.cube -print0|xargs -0 -I {} sed -i .bak '/^V^M$/d' "{}"

 

This literally just nuke all the blank lines leaving the rest along.  

Share this post


Link to post
Share on other sites

Heh, you are definitely handy with the command line :]. Thanks for sending the files - it was indeed a line ending issue, it's now fixed and will be out in the next update coming shortly. Thanks for reporting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×