Quantcast
Channel: Scripting - McNeel Forum
Browsing all 5835 articles
Browse latest View live

How to convert GUID to Point3D by python script

@obakatsu wrote: Hi! I am trying to make grasshopper components using ghpython.In the script, I need to change data type from GUID to point3d.Can anyone tell how to convert data type by python script?...

View Article


ObjectTable.AddSurface() can add multiple surfaces

@spb wrote: AddSurface.3dm (18.1 KB) contains an invalid 1-face brep. _Untrim will convert it into a valid 1-face brep of the underlying surface. If the same is attempted via RhinoCommon, such as by...

View Article


Image may be NSFW.
Clik here to view.

Help with solving Trig problem

@Hughes_Tooling wrote: I want to script drawing the blue teardrop in the image below. Before going down my usual brute force and ignorance method of solving this I wonder if anyone's got any bright...

View Article

Python raw_input OR rs.GetObject prompt

@asbeastos wrote: Hello everyone, I'm working on a script to find and replace text throughout a document (we do all of our shop drawings in Rhino, so if a material spec changes, that could mean...

View Article

What is IEnumerable[GeometryBase]?

@obakatsu wrote: Hi all, I am trying to make grasshopper component using ghPython. But I get following error Runtime error (ArgumentTypeException): expected IEnumerable[GeometryBase], got Brep...

View Article


Stop to iterate without showing any error

@obakatsu wrote: Hi! I have written script which iterate procedure.The problem is that even though I did not get any error, it stop to iterate.Does anyone have idea why script stop to iterate without...

View Article

Loft with "point" option in script?

@Jarek wrote: Is there a way to loft using Point as one end of the loft, similar to what command can do?When I feed a curve and a point to RS AddLoftSft method it does not seem to work... SOLVED: I...

View Article

Document name DXF

@Maxim wrote: Hey there, I'm working on a script and have to output the file name. But rs.DocumentName() working only with 3dm files.Is there any others ways to get the document name of dxf (for...

View Article


How to save bitmap data from the current view?

@obakatsu wrote: Hi! I have been writing script to capture screen for current view in ghPython.Trying to find approach in web site, Rhino.Display.DisplayPipeline.DrawToBitmap() could be one option....

View Article


Can I pay someone to write me two Python scripts that I need? Both involve...

@jarombra wrote: Hey, I'd like to commission two Python scripts that I need if someone can offer their services. What I need are described below: Firstly, a script that selects all objects on a layer...

View Article

Save script variables in memory until next script run

@socken wrote: Hi all, I want to save the input from current script until next time I open it. (or Rhino closes)Is there a way to do this?I'm doing python and would like to stay in that language if...

View Article

The reason why script freeze when I use gh.RunSolver

@obakatsu wrote: Hi!I am trying to write script which can automate to change parameter in slider and export image file.When I run the following script, it stop to work.I guess it could go into...

View Article

Could not add reference to assembly Rhino">clr.AddReference("Rhino") -- > Could not add reference to assembly Rhino

@owhite wrote: Does anyone know why I'm getting "Could not add reference to assembly Rhino" with the following code: import clr clr.AddReference("Eto")clr.AddReference("Rhino") on Rhino for Mac?...

View Article


How to select the closest surface with given Point3D?

@Yishin_Li wrote: With rs.GetObjest(), I may select surface by manually clicking the mouse. With RhinoPython, is it possible to select a surface without clicking the mouse?For example, select the...

View Article

Error in script and updated

@sun wrote: Script ArrangeTiles.pdf (158.7 KB)script arrange tiles.3dm (325.7 KB)6cd794a52abe0524.rvb">ArrangeTiles.rvb (11.1 KB) HelloI need support in 3 points.1º I run the script Arranje Tiles...

View Article


Error and updated teh script

@sun wrote: HelloI need support in 3 points.1º I run the script Arranje Tiles with the file script arrange tiles.3dm and I get one error can be check in attach file Script Arrange Tiles.pdf. 2º I need...

View Article

RhinoCommon equivalent of DivideAlongCreases/SplitAtTangents?

@Helvetosaur wrote: How can one create a SplitAtTangents equivalent as a post-process to the various Brep creation methods like Sweep? I don't see any exposed method for this... Thanks, --Mitch Posts:...

View Article


History directive "#" is ignored in "Python Script"

@Katsu wrote: In command line, "#" is "History ON "> #Pipe it works with history but in Python script cmd = "#Pipe _Thick=_No _Cap=_None 1.0 1.0 _Enter" rs.Command(cmd, True) it works but without...

View Article

Scripting layer change

@Dottedline wrote: Hi, Can changing layers be scripted based on a current selection, using common layer names. Ie: Manual selection of objects Click macro / shift selection of objects to desired named...

View Article

RC - CreateMeshFromBrep() - closed polysurface makes unjoined mesh

@Helvetosaur wrote: One mesh is created for each Brep face, not one mesh for the whole object. Is this supposed to work this way? Do I always have to join the individual mesh parts? Or is there a...

View Article
Browsing all 5835 articles
Browse latest View live


Latest Images