Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rhino:mac:uniqueui:walkabout:addmacros [2019/11/01]
pascal
rhino:mac:uniqueui:walkabout:addmacros [2019/11/01] (current)
pascal
Line 36: Line 36:
  ​{{:​rhino:​mac:​uniqueui:​walkabout:​blanknewmacro.png?​300|}}  ​{{:​rhino:​mac:​uniqueui:​walkabout:​blanknewmacro.png?​300|}}
  
-Copy the relevant macro with the python code from the wiki. We're using Elevator Up here as an example-+Get the icon for the new button - locate the relevant image file in the {{:​rhino:​mac:​uniqueui:​walkabout:​walkabout_icon_set.zip|WalkAbout icon set}} in the Finder and drag and drop the image onto the icon place holder in the button editor. 
 + 
 +{{:​rhino:​mac:​uniqueui:​walkabout:​drag_and_drop.png?​300|}} 
 + 
 +Then, copy the relevant macro with the python code from the wiki. We're using Elevator Up here as an example-
  
 {{:​rhino:​mac:​uniqueui:​walkabout:​copycode.png?​300|}} {{:​rhino:​mac:​uniqueui:​walkabout:​copycode.png?​300|}}
  
-And paste that text into the '​Script'​ field in the button editor. (Note the macro has a normal Rhino command "​-_RunPythonScript"​ and a bunch of python code making up the script itself. Most buttons will only include one or more Rhino commands and options in the Script area, not an actual Python script) ​+And paste that text into the '​Script'​ field in the button editor. (Note the macro has a normal Rhino command "​-_RunPythonScript"​ and a bunch of python code making up the script itself. Most buttons will only include one or more Rhino commands and options in the Script area, not an actual Python script) ​Fill out the other text fields for the button.
  
 {{:​rhino:​mac:​uniqueui:​walkabout:​pastecode.png?​300|}} {{:​rhino:​mac:​uniqueui:​walkabout:​pastecode.png?​300|}}
  
- 
-Next you'll want to get the icon for the new button - locate the relevant image file in the {{:​rhino:​mac:​uniqueui:​walkabout:​walkabout_icon_set.zip|WalkAbout icon set}} in the Finder and drag and drop the image onto the icon place holder in the button editor. 
- 
-{{:​rhino:​mac:​uniqueui:​walkabout:​drag_and_drop.png?​300|}} 
  
  
rhino/mac/uniqueui/walkabout/addmacros.txt · Last modified: 2019/11/01 by pascal