Message 1 of 5
Catching maxscript variable scope end/ Custom context expression

Not applicable
10-30-2019
10:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Apologies if this has been asked before, I couldn't find anything.
Basically I'm after something akin to context expressions, i.e. "with anim off" etc. where a scope in maxscript can start and _end_ a functionality, e.g. the usage of logging, etc.
I couldn't find anything in the docs that points towards context expressions being creatable, so I started looking into whether I could hook into the marking up of "Value" objects for garbage collection, but the memory handling seems to be omitted from the public headers.
Any hint at how I could catch the end of a scope or create a custom traceable scope?
I hope this makes sense when reading. 😉
Thanks!