There is an example in C#. You should be able to convert it to Python if needed.
https://github.com/dalefugier/SampleCsCommands/blob/master/SampleCsBoxMorph.cs
Does this help?
There is an example in C#. You should be able to convert it to Python if needed.
https://github.com/dalefugier/SampleCsCommands/blob/master/SampleCsBoxMorph.cs
Does this help?