Sorting objects in a list by their XYZ location
@robertowhite wrote: Maybe a simple question but I have a script that takes a series of surfaces and labels them at their centroid. Works well, but I would like to sort the list by the XYZ coordinate...
View ArticleLoose offset Curve script
@Gijs wrote: Attached is a work in progress of a loose offset for curves. It basically offsets the control points in the direction normal to the closest point on the curve. The resulting curve will...
View ArticleLoose project curve on surface
@Gijs wrote: The attached script allows you to project a curve onto a surface loosely, which means the resulting curve will have the same amount of control points as the input curve. It will also...
View ArticleProcedural Ocean water
@juancarreras wrote: I stumble upon this while searching for a good ocean water vray shader.https://www.shadertoy.com/view/Ms2SD1Can some of you programmer gurus explain how this works ? Any remote...
View ArticleImport numpy scipy in GHPython how possible
@ndl wrote: Hi everyone, i want to test a script in GH Python that needs numpy and scipy. Any suggestions? Thanks in advance Posts: 2 Participants: 2 Read full topic
View ArticleRS PointPick method enhancements request
@Jarek wrote: Hi @dale, For the improved Rhino.PointPick method, we had some ideas scattered all over the place in different threads, so I am consolidating them here, with addition of 1 new one: 1)...
View ArticleExtract preview thumbnails from 3dm file with same name
@pandabianko wrote: dear All,I'm looking for a fast way to extract all the thumbnails of 3dm files I have in a folder. If possible I would named all the new picture with the same name of 3dm file.I...
View ArticleHow to add a Rhino.Geometry.BezierCurve in RinhoPyton Editor
@marceloarguello700 wrote: Hi I am new in the rhino script environment.Trying some code in the RinhoPyton Editor, start reading points from a CSVand drawing some curves. I have ReadPointsDef that...
View ArticleExplodeBlock are killing object names
@AlanGreyjoy wrote: Hey guys, I am having a problem with inserting blocks. Here is some of my code plp1 = rs.ObjectsByName("PART LIST POINT 1") plp1Coor = rs.PointCoordinates(plp1) dlpTB =...
View ArticleRender command
@juancarreras wrote: Here is a little script that I made to avoid rendering the wrong viewport.Specially in big scenes, it's frustrating to click render only to realize that you had the wrong viewport...
View ArticleInsane question... i want to place a preview in a windows form
@AlanGreyjoy wrote: That pretty much sums it up. I am making a tool builder. The user builds the multicams tool list from my form, then it inserts my generic tool list block and modifies it with the...
View ArticleHow can i load a material for assigning to one object by slecting when i use...
@robinyss wrote: How can i load a material for assigning to one object by slecting when i use py code to do? This is code: This Python file uses the following encoding: utf-8 import rhinoscriptsyntax...
View ArticleUsing rs in vs.... works somewhat
@AlanGreyjoy wrote: So I followed this guide here http://wiki.mcneel.com/developer/sdksamples/rhinoscriptfromdotnet I know its outdated, as that function does not work now. But I did get it to work...
View ArticleRhino Python Primer download URL?
@AndersDeleuran wrote: Hi All, Just needed a link to the RhinoPython primer. Can't seem to find an "official" one anymore. The link here is dead (or goes to the new wiki and then in circles):...
View ArticleAn alias for change the Distance display
@cosmas wrote: Hey guys, I am wondering if there's a way to create a macro that I would attach to an alias that would change the distance display in Options/ Document Properties/ Units from Fractional...
View ArticlePoint related operations execution speed
@lawrenceyy wrote: I've been doing some research into mimicking the logic found here and here to create stippled distribution via grasshopper+python. I've been able to script the logic, but am finding...
View ArticleMoment of Inertia from Multiple Objects
@gsynetos wrote: Hello all, This is my first topic in the forum. I am a beginner in scripting and i would like to ask for your help.As a first goal and since I cannot directly use the Rhino command...
View ArticleLastCreatedObjects RhinoScript trouble
@cristina.b wrote: Hi, I am trying to generate some curves in a "For" loop, then select them all and add them to a group, but it seems that Rhino.LastCreatedObjects does not work in the same script. I...
View ArticleRhino.TrimBrep set cutter's direction in RhinoScript
@cristina.b wrote: Hi, How can I have control over what is kept and what is removed when using the Rhino.TrimBrep? (i.e. I would like to always keep the lower part of a vertical cylinder trimmed by a...
View ArticleScript generates duplicate objects
@robertowhite wrote: Hi all-I quickly whipped up this script to run unrollSrf on multiple objects. Got the job done but rs.UnrollSurface creates geometry that I have to manually delete after moving....
View Article