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

Mouse click without timer?

Hello How we can define mouse left or right click with GhPython without using timer? If possible with using external dll 2 posts - 2 participants Read full topic

View Article


Installing .rhi files from the command line

https://wiki.mcneel.com/rhino/installrhi I am wanting to install a .rhi file from the command line (preferably through a custom command), and be able to update the files within the .rhi directory as...

View Article


How should I write this mathematical definition in rhinoscript

How should I write this mathematical definition in rhinoscript so that it works and to be able to see the graph on the Rhino screen? {(u, v) | 0 ≤ u ≥ 2π, 0 ≤ v ≥ π} x = sin (v) cos (u) y = sin (v)...

View Article

Custom Save_As script with date prefix

Hi Guys, I’ve been using a custom Save_As button for a few years as part of my own file management. What it does is take what ever Rhino Doc I have open and add/update the file name with a YYMMDD_...

View Article

Selecting objects by "displayed" color

Hi, I’m trying to figure a way of quickly flipping dir of faces in large projects. Is there a way of selecting faces by their displayed color ? I mean : not “display color” but actual “displayed...

View Article


Image may be NSFW.
Clik here to view.

Automatic saving svg files via C# Script from Grasshopper

Hi all, I have written a C# script in Grasshopper based on the video of Junichiro Horikawa (How to Export Geometry in Grasshopper using C# - YouTube). What the script does is select elements and then...

View Article

Image may be NSFW.
Clik here to view.

How to fix the result of rhinoscriptsyntax.SortPointList command

Hi, friends on the Forum: I just meet a problem while programming. I try to use a piece of script like follows to get the result, it will return a polyline linked by intersections points in my plan....

View Article

How does delete the component by script?

how does delete the component by script? in this example all the components that name in panel will be Enable Disable by c# or python script also how delete them?...

View Article


C# script: Error 1: Index out of range

Hi there, I wrote a simple C# code to help me calculate the amount of rainwater that would be stored in a tank after using some of it for irrigation. Everything seemed fine on the first run, but then...

View Article


Selection Filter Preset?

Hello People, I would like to have a shortcut that quickly toggles a SelectionFilter to Curves only, but when i modify the Filter and restart Rhino, the Filter is reset. Is it possible to either write...

View Article

Image may be NSFW.
Clik here to view.

Python script obj use render mesh

Hello! I am trying to script in python the export selection using the render mesh for an obj. Is this option exposed? Thanks image338×509 11.8 KB 2 posts - 2 participants Read full topic

View Article

PatchSingleFace

Hello all, it is possible to have the same result as the command “PatchSingleFace” in Py or Gh? thank you! 5 posts - 3 participants Read full topic

View Article

Getting a Constant GUID for a Grasshopper Object

Hello All, I’m writing a script that takes a bunch of geometry, packs it up into an external json file, and sends that file into an external optimization script. That optimization script sends back an...

View Article


Saving As with Spaces in the Path Name

I’m trying to save a .3dm file by using python code. To do this, I’ve done the following rhinoPath = os.path.join(basefilePath,rhinoFile) command = '-_SaveAs "{}"'.format(rhinoPath+'.3dm')...

View Article

How to force a linear polyline to be a polyline

Hi there, I am trying to simulate a structure with kangaroo, for which I need polylines. I’ve got a ‘little’ cluster beforehand that projects straight lines onto a curved surface, intersects those...

View Article


Exporting data for Cam (CNC) purposes

I am new to Rhino and am interested in producing a Macro/Script/Addin for the export of a complete model or individually selected sketches to a 3rd party Cam product for the production of cnc (G-Code)...

View Article

Invalid Option on STL export with rs.Command()

Hi all, I am trying to export STL files in rs.Command() with the following code: curDir = rs.WorkingFolder() folderDir = curDir+'/fragments/' os.mkdir(folderDir) stlSettings = ' _ExportFileAs=_Binary...

View Article


Image may be NSFW.
Clik here to view.

BrepFace.RefitTrim

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_BrepFace_RefitTrim.htm What about Brep.face and Surfce interference؟ nce? Can anyone help me fix this error?...

View Article

Delete a range of layers

Hi, I want delete a range of layers via code. But not one by one with a loop, this is way to slow. When we manually select a range of layer in rhino, and the press on the red cross button it deletes...

View Article

Image may be NSFW.
Clik here to view.

Recreate block layer structure

Hi All!!! I would like to recreate the layer structure of an embedded block in a separate layer. I’m currently creating a separate layer for each block, calling it Block_ + “Block_name” and putting...

View Article
Browsing all 4114 articles
Browse latest View live