Closed kwokcb closed 2 years ago
Change OSL filename syntax to be a structure. Current members include filename and colorspace but more can be added (such as for udim information which is currently additional arguments)
[Newbie comment] That's an excellent idea so any later changes/improvements can be smoothly integrated.
I made a comment about the name but I would also to highlight that colorspace
string is used by the structure for the color space of the file to import but also by the document for the working color space. Is that ok to use the same string?
Change OSL filename syntax to be a structure. Current members include filename and colorspace but more can be added (such as for udim information which is currently additional arguments)
[Newbie comment] That's an excellent idea so any later changes/improvements can be smoothly integrated. I made a comment about the name but I would also to highlight that
colorspace
string is used by the structure for the color space of the file to import but also by the document for the working color space. Is that ok to use the same string?
Missed answering this:
Hope this makes things clear.
Update #1297
filename
andcolorspace
but more can be added (such as for udim information which is currently additional arguments)Results Sample MTLX file (found in
/resources/Materials/TestSuite/stdlib/color_management
). filename_cm_test.mtlx.txt Sample OSL generated using new structure shaderref1.osl.txt Sample OSL generate using new structure and passing colorspace shaderref1_arnold.osl.txt