Catching maxscript variable scope end/ Custom context expression

Catching maxscript variable scope end/ Custom context expression

Anonymous
Not applicable
635 Views
4 Replies
Message 1 of 5

Catching maxscript variable scope end/ Custom context expression

Anonymous
Not applicable

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!

0 Likes
636 Views
4 Replies
Replies (4)
Message 2 of 5

denisT.MaxDoctor
Advisor
Advisor

it is a c++ api question, isn't it? 

0 Likes
Message 3 of 5

Anonymous
Not applicable

Yes, sorry, it wasn't obvious to me whether there was a further subcategorisation of 3DSMax programming? I'd expect this to be at SDK level, although happy for solutions in any API.

Thanks!

0 Likes
Message 4 of 5

denisT.MaxDoctor
Advisor
Advisor

I understand correctly that you want to write your own custom context using c++ MAX SDK and expose it to the MXS?

0 Likes
Message 5 of 5

Anonymous
Not applicable

Yes, or catching the mark-up of a variable for Max's garbage collection when a local scope ends.

 

0 Likes