query "scene:path" context var in OSL Expression node #5290
-
Hey All, From your docs etc, I assume it should be possible to query the scene path in an Expression node using OSL. I wrote this expression in Python with no issues, but converting to OSL to test speed, I am having some issues. In short:
results in the default value being printed for each location in the DAG. the Python equivalent Is this something that is not actually supported in the Expression Node? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As you suspect, retrieving |
Beta Was this translation helpful? Give feedback.
As you suspect, retrieving
scene:path
isn't currently supported in OSL expressions, but is supported in Python expressions. The reason is thatscene:path
is actually an array of (interned) strings, and we haven't implemented support for those in OSL. If there are no limitations in OSL itself (I haven't looked yet), we may be able to fix this if you'd like to open an issue.