View RSS Feed

RhinoPython

This is the RhinoPython Blog

  1. Outside the Box - Using Web Services from Python

    I've been trying to learn more about things like web services and APIs provided by internet companies (gotta figure out what all of these buzzwords are.) One thing I've noticed is that many companies now provide a REST API which return JSON objects. There are enough resources on the web that describe REST and JSON that I don't need to repeat it here; I'm just going to get to my python experiments on this technology.

    Attached are a python script and a grasshopper definition containing ...
    Categories
    RhinoPython
  2. Python component for Grasshopper

    Giulio Piacentino and I have been working on an update to the grasshopper/python component and finally have something to show off!!!

    http://www.food4rhino.com/project/ghpython - NOTE: Will only work in Rhino 5


    This component is a scripting component similar to the VB.NET and C# components that ship with Grasshopper. You get a component where you can define as many input and output variables as you want and then reference these variables in the python script. ...
  3. Running scripts from Toolbar buttons

    This is only for Windows Rhino right now since you can't customize toolbar buttons on Mac yet, but once that feature becomes available I'm pretty sure the technique will be the same.

    In Rhino, create a new toolbar button and edit it. Consult the Rhino help for for adding and editing toolbar buttons. Now you have three options (that I can think of at the moment) for adding a python script to a toolbar button. All of these involve executing the RunPythonScript command

    ...
    Categories
    RhinoPython
  4. StarMaker - An advanced sample

    Here's a sample that demonstrates quite a few of the advanced features in Rhino.python. This sample was written and tested on Windows (I doubt it is going to work very well on OSX given that Windows.Forms are being used.) You are going to need to be running at least the July 20th build of Rhino 5 to test this.

    StarMaker is composed of two script files; starmaker.py and sliderform.py. Save these files to the same directory.

    What does it do? StarMaker just creates a ...

    Updated 09-09-2010 at 05:15 PM by Steve Baer

    Categories
    RhinoPython
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	sharpdev.jpg
Views:	1411
Size:	126.4 KB
ID:	94   Click image for larger version

Name:	starmaker.jpg
Views:	1544
Size:	119.3 KB
ID:	100  
    Attached Thumbnails Attached Files
  5. Configuring Pydev for Rhino.Python


    NOTE: This article is specific to getting Pydev to work on Windows. I've had problems getting the ironpython interpreter to work inside Pydev on Mac. Hopefully this will inspire someone to hack away at the Mac version of Pydev and figure out what it takes to make it work for Rhino.Python.

    What's Pydev?
    The folks at Pydev can probably do a much better job of explaining their product (http://pydev.org/index.html). In ...

    Updated 01-06-2011 at 10:43 PM by Steve Baer

    Categories
    RhinoPython
  6. New Rhino V5 WIP - Python Batteries Included



    The April 22, 2010 WIP of Rhino 5 (http://download.rhino3d.com/rhino/5.0/wip) includes the python standard library in the installation. Rhino's python scripting engine is wired up to make this library available to all python scripts executing in Rhino. Script writers can use all of the functionality in the .NET framework that they have always had access to along with many of the modules built into the python ...