New Rhino Command with EditPythonScript

Hi there,
When running the “EditPythonScript” function, it’s possible to create a new PYTHON Script or to create a new Rhino command.
Does anyboby know how to create and use a new rhino command implemented this way?
I tried it by creating a new command named “MyCommand” in a plug-in named “MyPlugIn”, it creates a sort of operating program template but I can’t figure out how to run it. What to do next ?
Thanks for your help

Hi,

In addition to restarting Rhino you also need to re-run “EditPythonScript” for the command to be fully registered.

Let me know if that works.

Alain

Hi Alain,

It works well ! Now, when I search for “MyCommand” in the Rhino command line, it’s there and it runs the python code.
Thank you.

Baptiste