Can we convert a Python script to a Popup button?

Hi Jack,

You can create your own toolbar buttons:
http://docs.mcneel.com/rhino/5/help/en-us/index.htm#toolbarsandmenus/toolbar_button_editor.htm

On that button you can set a macro for the command RunPythonScript like so:

_-RunPythonScript
(
your python script here
)

for example:

_-RunPythonScript
(

import rhinoscriptsyntax as rs

def MakeAPoint():
   rs.AddPoint(0.5,0.5,0.5)

MakeAPoint()

)

In the button editor it looks like this:

HTH
-Willem

1 Like