Calling Snippets Directly #1081
-
Is there a way to trigger a snippet directly with lua using some sort of identifier? One use case for this would be the ability to have modular snippets that could reference each-other. Right now, I achieve this with a lua module containing dynamic nodes that return whatever nodes I like to reuse. But I think it would be much more straightforward if I could just call another snippet directly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can use But tbh, reusing dynamicNodes for this purpose sounds more straightforward than expanding a whole other snippet. |
Beta Was this translation helpful? Give feedback.
Mhmm, at the very least, that's a very curious way of accessing
env
:DTry
local env = parent.snippet.env
, that might do itAnd damn, what timing, I just checked my mail xD