Maxscript Structs

Maxscript Structs

Anonymous
Not applicable
671 Views
1 Reply
Message 1 of 2

Maxscript Structs

Anonymous
Not applicable

the On Create is basically the same as the default constructor in other languages. 

But is there a default destructor to clear the memory and the scene of all the things the struct has added. 


I tried using "on delete do" and function delete = (). 
I used "function del = ()" that deleted all the associated geometry and modifiers etc. 
But is there some way of deleting the struct itself. I did try StructInstance= undefined. 


also is there a 'this' function?

Raj

 

0 Likes
672 Views
1 Reply
Reply (1)
Message 2 of 2

k4noe_vi
Contributor
Contributor

in 3ds max 2014 n up , I think , there's "this" function on struct...I don't know when it added tho...you could trace it on max 2013 .

0 Likes