RV OCIO Context Variable - file reference could not be located bug

Tried following this guide but I keep getting this error:

ERROR: OCIOIPNode: The specified file reference '${CDL_FILE_PATH}.cdl' could not be located. The following attempts were made: 'C:\Temp\_ocio\luts\${CDL_FILE_PATH}.cdl' : 'C:\Temp\_media\${CDL_FILE_PATH}.cdl'.

Why might this happen please?

Thanks,
Patrick


ocio_profile_version: 2

search_path: 
  - luts
  - C:/Temp/_media
strictparsing: true

# Defines the dynamic CDL and static Show LUT as separate, toggleable Looks.
looks:
  - !<Look>
    name: shot_specific_look
    process_space: scene_linear
    transform: !<GroupTransform>
      children:
        - !<FileTransform> {src: "${CDL_FILE_PATH}", cccid: 0, interpolation: linear}

context = {"CDL_FILE_PATH" : "HSO_0510_comp_BOT_v003.cdl",
		   "CDL_ID":"HSO_0510_PL01_V01"}

nodeType = commands.nodeType(node)
....
elif (nodeType == "RVLookPipelineGroup"):
	result = [
		{"nodeType"   : "OCIOLook",
		 "context"    : context,
		 "properties" : {
			 "ocio.function"     : "look",
			 "ocio.inColorSpace" : DEFAULT_INPUT_SPACE,
			 "ocio_look.look"    : "shot_specific_look"}}]

I’m pretty sure you can (should?) just use $CDL_FILE_PATH in your config.ocio (without curly brackets or quotes)

instead of:

Not sure if that fixes the issue.
You are defining a context dictionary, how are you then getting this context to the node?

Cheers, Mirco

Yeah don’t use the curly brackets, see if that works.

Also, add a default environment to your file so the OCIO config does not error if a context is not provided.

environment:
  CDL_PATH: "neutral.ccc"
  LUT_PATH: "neutral.cube"

Thank you guys and with and without curly braces I get the same errors…

I published a fully runnable mini sample here and since its github its easy to look at the files

Thanks for your help it’s appreciated

I really think its because you are not setting the initial environment up.

I you add these to your OCIO config and place those two files in your ocio luts seach dirs then RV will be able to read the config before you load any media.

environment:
  CDL_PATH: "neutral.ccc"
  LUT_PATH: "neutral.cube"

Just use any of the show luts as neutral and a cdl file that does nothing for CDL.

1 Like

Thank you. Those weren’t actually the issue it seems because now it works even when removing the lines but adding your lines did remove the error messages so I could keep working on the solution and it is working now. Also curly or non curly braces didn’t seem to make a difference once its working.

I pushed the changes to github in case anyone else needs it later

1 Like

And if anyone is inspired for more OCIO issues here is my follow-up ticket on getting views to work with looks :slight_smile: Thanks

1 Like