+ Reply to Thread
Results 1 to 5 of 5

Thread: where can i find rhinocommon pythonscript sample. not rhinoscriptsytax.

  1. #1

    where can i find rhinocommon pythonscript sample. not rhinoscriptsytax.

    i found there are vb an c# examples for rhinocommon.

    here is the link: http://www.rhino3d.com/5/rhinocommon/
    but no information for python. How about adding a python-edition examples?
    i think it will be helpful for someone new in python like me.
    slightly i come, slightly i gone.

  2. #2
    Super Moderator Mitch's Avatar
    Join Date
    May 2010
    Location
    Switzerland
    Posts
    288
    Hi, there are some here (bottom of page) : http://wiki.mcneel.com/developer/python
    --Mitch

  3. #3
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    Those are all the same samples that you see in the SDK reference pages. I couldn't figure out how to get the python versions to get included in a similar fashion as the VB.NET and C# samples

  4. #4
    Hi Stjackin, I write code using RhinoCommon once in a while, and I almost always share it on GitHub, either as a Gist (short one page piece of code) or a repository (a collection of python modules)

    Here are some examples:
    SplitCurves - Splitting up a set of Curves at all of their intersections
    ShpToRhino - A package for importing ESRI shapefiles into Rhino and Grasshopper
    RhinoPythonScripts - A package where I store various useful functions for using python in Rhino and Grasshopper. Always in development and currently in need of updates and restructuring.
    https://gist.github.com/2794874 - a script for dealing with the import of python modules in grasshopper (something I hope will be totally obselete in the near future, excited about the possibilities for better handling of packages)
    https://gist.github.com/2835314 - using input indices and objects, arrange the objects into separate tree branches in Grasshopper based on the index numbers
    https://gist.github.com/2643722 - a quick script for reading text objects that describe elevation and then creating 3d points based on the text they contain.
    https://gist.github.com/1501888 - a somewhat messy script for automating Make2Ds, something that I wish I could completely debug in order to have relaiable Make2D results.
    https://gist.github.com/1121702 - an example of creating a basic 'agent' that I used for teaching python classes to architecture students in a grasshopper class
    https://gist.github.com/1121701 - another iteration of the previous script
    https://gist.github.com/1057297 - calculating the least cost path in a mesh using networkX, I've got a lot more networkX-based scripts in the works that I'll be sharing in the months to come.

  5. #5
    Quote Originally Posted by BenjaminGolder View Post
    Hi Stjackin, I write code using RhinoCommon once in a while, and I almost always share it on GitHub, either as a Gist (short one page piece of code) or a repository (a collection of python modules)

    Here are some examples:
    SplitCurves - Splitting up a set of Curves at all of their intersections
    ShpToRhino - A package for importing ESRI shapefiles into Rhino and Grasshopper
    RhinoPythonScripts - A package where I store various useful functions for using python in Rhino and Grasshopper. Always in development and currently in need of updates and restructuring.
    https://gist.github.com/2794874 - a script for dealing with the import of python modules in grasshopper (something I hope will be totally obselete in the near future, excited about the possibilities for better handling of packages)
    https://gist.github.com/2835314 - using input indices and objects, arrange the objects into separate tree branches in Grasshopper based on the index numbers
    https://gist.github.com/2643722 - a quick script for reading text objects that describe elevation and then creating 3d points based on the text they contain.
    https://gist.github.com/1501888 - a somewhat messy script for automating Make2Ds, something that I wish I could completely debug in order to have relaiable Make2D results.
    https://gist.github.com/1121702 - an example of creating a basic 'agent' that I used for teaching python classes to architecture students in a grasshopper class
    https://gist.github.com/1121701 - another iteration of the previous script
    https://gist.github.com/1057297 - calculating the least cost path in a mesh using networkX, I've got a lot more networkX-based scripts in the works that I'll be sharing in the months to come.
    Thanks Benjamin. Thanks guys.

    It really helps a lot.
    slightly i come, slightly i gone.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts