Grasshopper

algorithmic modeling for Rhino

A discussion related to usage of the Rhino Command-line Component...

The 'Rhino Command' component allows you to send command strings to the Rhino command-line which allows you to access any Rhino functionality that there is a command for...  

For example:

The following command string will draw a square using a Polyline:

polyline 0,0,0 0,10,0 10,10,0 10,0,0 0,0,0 Enter


Note the spaces between the coordinates.  The command string is completed with "Enter"

-Nathan

Views: 6082

Replies to This Discussion

Great Component :) Thanks Nathan

I added some strings and it follows:

polyline 0,0,0 0,10,0 10,10,0 10,0,0 0,0,0 Enter '_SelLast ExtrudeCrv 50 enter _SelPrev AreaCentroid


I want to continue the command like "Twist" and twist the box but I could not find a way to give my centroid to the first axis point (if only I could find the rhino command which gets objects ID or  something!! so I made it more simple by making the square have another location!

polyline 10,-10,0 10,10,0 -10,10,0 -10,-10,0 10,-10,0 Enter '_SelLast ExtrudeCrv 50 enter  '_SelNone '_SelPolySrf twist 0,0,0 0,0,25 90 

and this is the result! This is cool! It's all the grasshopper squeezed in to a component with just a big difference! It bakes all the algorithm so it's just a new rhinoscript lol!! :D

It will be great if it had an output like geometry or Guids or maybe data! Great one Nathan :)

The interesting part is that you can turn the component to a parametric one by using string commands! I made a small one and got this:

I have also attached the definition for those who are interested! 

Attachments:

Hi Nathan,

it is very nice to have now all Rhino commands in Grasshopper.

But I think it is missing that you get the data back to Grasshopper.

Is it possible to add an option or directly a data output in the next release, so that the geometry you create or change is deleted in Rhino and get referenced to Grasshopper?

Best,

Martin.

Is there any way to not have the layer delete itself after running the command?  I can't seem to get anything out of the component because of this.

Rhino Command is not working in the latest release.

The component looks the same as the 'Save' one.

Any thoughts?

Thanks

C

just realised the same!

Thank you so much!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service