Define the parameter value type as 'siDispatch' with default value of zero, and set the argument type to siArgumentInputOutput (or whatever it's called).
Example: oArguments.Add( "my_map", siArgumentInputOutput, 0, siDispatch ); You might run into a few quirks depending on which language calls your command. Matt -----Original Message----- From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Ben Houston Sent: Wednesday, February 13, 2013 7:16 AM To: softimage@listproc.autodesk.com Subject: Returning a "map" from a C++ command? Hi all, We are currently extending our Alembic tools in Softimage so that you can modify all the paths globally to Alembic files in the operators via a scripting interface. One nice feature would be to get a list of map of qualified Softimage node names to Alembic paths. But I am currently not sure how to return a map from a C++ command. Is there a way? I guess we can return two arrays, one with the values and one with the keys, or a single array with key,value,key,value. But is there a way to return a true map that would turn into a Python map if it was called from Python? -- Best regards, Ben Houston Voice: 613-762-4113 Skype: ben.exocortex Twitter: @exocortexcom http://Exocortex.com - Passionate CG Software Professionals.