Using delegates in maxscript



I want to use this custom dot net control

But to use the TreeListView it needs a delegate to be assigned

this.treeListView.CanExpandGetter = delegate(object x) {
return (x is DirectoryInfo);

Is it possible to implement this in maxscript code?


if you can’t understand how someone else’s code works, do not use it!


Thats some advice