[Max-SDK] Return c++ struct to maxscript

Hi all,

I am looking to get and set skin data from a lot of skinned meshes as speedily as possible, hence I am attempting to push my existing python library to the sdk.
I have managed to get my plugin to get the skin data ( rather speedily indeed ) but I cannot work out how to return said struct to maxscript.

I have found a few examples but I can’t seem to get it working.
Does anyone have any insight into this? I would greatly appreciate it!

Cheers!