Skip to content

DarrelRonald/RhinoPythonScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RhinoPython and ghPyton Scripts

Scripts for use in Rhino 3D and Grasshopper. These are public scripts that can perhaps be of use in day-to-day projects and learning.

What has been especially frustrating for me when learning scripting within the context of Rhino3D and Grasshopper3D is the many different ways to do the same things. Further frustrating is the whole learning process around the .NET framework and the class-oriented object-oriented programming of the McNeel Rhino Developer Examples.

Learning

  • Add-Delete-Circle.py (includes: .py): this is a modification of the add-circle.py code of McNeel to see the 2 different methods of writing the circle() class and also to compare 2 ways to delete objects within the Rhino3D file using either scriptcontext versus RhinoCommon and rhinoscriptcontext.

Utilities

  • ListOfRhinoCommands (includes: .py, .gha): this sorts a list of all Rhino.Commands that can be accessed through RhinoCommon. It is a tool for seeing quickly what commands are available. You can also copy the output panel contents and paste into an excel sheet.
  • ScriptContextChanger (includes different: .py, .gha): these are more educational code blocks. However, if you're writing python scripts using RhinoCommon, you will sometimes need to change the scriptcontext.doc
  • ImportSysExplorer_0.1.0 (includes: .gha): This ghPython module imports the sys module from IronPython and exports to panels both sys.builtin_module_names and the sys.path.
  • PythonTemplate_0.1.0 (includes: .py): This python script has the most important python template elements.

About

Scripts for learning and for use in Rhino3D and Grasshopper3D

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages