Open BigRoy opened 5 years ago
Thanks for flagging that @BigRoy, I'll have a look at it. I'm actually kind of surprised that ImageReader does work with back slashes - there's a good chance that we will settle on using forward slashes in all user-facing UI for cross-platform compatibility.
I'll investigate to come up with a more considered conversation though.
Version: Gaffer Windows 0.54.1.0-beta
Description
When using
oslImage
node thefilename
attribute does not support backslashes unlike theImageReader
node which does support it.Steps to reproduce
OSLImage
(with the capital O!)OSLImage
node. (to avoid crash, see #7)+
in the Node Editor, addStandard > RGB
oslImage
node (no capital O).oslImage
output to the RGB input of theOSLImage
node.oslImage
node.Note how the image does display when it's using regular slashes and fails to work if the path contains backslashes. It does not crash and fails with errors in the command prompt.
Workaround
For those requiring to use the
oslImage
node use forward slashes.Debug log
The command line reports the following error which shows that the path it passes on to OSL completely excludes the backslashes:
The path set in this case was:
C:\Users\Roy\Downloads\gaffer.png