Skip to content

query "scene:path" context var in OSL Expression node #5290

Answered by johnhaddon
JeremyBooks asked this question in Q&A
Discussion options

You must be logged in to vote

As you suspect, retrieving scene:path isn't currently supported in OSL expressions, but is supported in Python expressions. The reason is that scene: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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JeremyBooks
Comment options

Answer selected by JeremyBooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants