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

Change object layer by display color?

Hi, I’m importing a pdf file of a map. When I do this different types of element (building, grass, asphalt, parking…) has different display colors. I would like to use the color to move the objects to...

View Article


TriRemesh ScriptEditor Python Example

@DanielPiker Is it possible to run TriMesh in Rhino Python ScriptEditor (not Grasshopper) as a single function? If yes, is there any example for mesh with a fix boundary features? 14 posts - 3...

View Article


Image may be NSFW.
Clik here to view.

Smooth Pipes Model with Bifucations

Hi all! I have a structure with intersecting pipes, where each pipe is constructed in Rhino using ‘centerline + radius’ data to form pipes. However, this approach results in what appears to be several...

View Article

RhinoScriptSyntax - Section Style?

Just tried having a quick poke round, but couldn’t find anything - I’ve written a tool to set block properties to “By Parent” for things like linetype, print colour, etc, with commands similar to:...

View Article

Automating layout dimensions

I am working on a script to automate dimensions in layout. Attached is a work in progress… So far I am able to get the objects showing in a detail and get the start and end point of each edge. It sort...

View Article


Get the grip position of a surface without activating the grips?

(topic deleted by author) 1 post - 1 participant Read full topic

View Article

Using _Inset with RhinoCommon?

Greetings, Can’t seem to find _Inset tool in RhinoScriptSyntax Is it possible to call it using RhinoCommon ? Note: _Inset is found under Mesh Tools, and it works with both Meshes and Surfaces. It...

View Article

Image may be NSFW.
Clik here to view.

Rhino.Geometry.Brep.IsPointInside() shows opposite bool result

When I use Rhino.Geometry.Brep.IsPointInside() with the Brep made by Rhino.Geometry.Brep.CreateOffsetBrep(), it shows the different result from the normal one. Is this bug? or I am missing something?...

View Article


Write File Python script freezes Grasshopper

Hello Everyone, I am working on a Python script in Rhino 8 Grasshopper that exports objects from a list of specific layers into a separate .3dm file. However, the current implementation freezes...

View Article


Issue: python 3.9 reaching end of life

Hi there, My colleagues and I depend on a large python codebase for production. A pip package owner pointed me at the fact that python 3.9 is reaching EOL (Status of Python versions) and they will...

View Article

Image may be NSFW.
Clik here to view.

Selecting certain lines after using rs.SplitCurve

I have created two fillets and i want to delete certain section of the splits curves (the ones with the red arrows pointing to them in the picture) I was trying to delete the curves bases on the...

View Article

Python39 Plugin for Rhino8

Where do I find the Python3 Plugin for Rhino8? I only have a Plugin for IronPython and I would like to use Python39 5 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Extracting rendermesh with bumb texture

I’m looking for a way to extract the mesh I see when I use a displacement pattern. In this case I have applied a displacement to a prep and it shows correctly in Rhino. But when I get the rendermesh,...

View Article


Making Rhino.RhinoApp.WriteLine() easier to use

I miss how the print statement could give feedback in the command window in pre-8 rhino while running an ETO form, and I’m tired of typing out Rhino.RhinoApp.WriteLine() all the time. So here’s a...

View Article

Image may be NSFW.
Clik here to view.

Best way to render hollow objects in the DisplayConduit?

DisplayConduit is rendering hollowed objects differently depending on how I make them. If I make them with CreateShell(), they render like I want. If I make them with CreateBooleanDifference() the...

View Article


Extrusion and other types of Brep like geometries conversion to Brep

Instead of doing the if statement below is it possible to cast rhino_obj.Geometry to brep in one single line? Breps can be extrusions and other types, but regardless of the sub-types I want to have...

View Article

Image may be NSFW.
Clik here to view.

Issue with Loading TorchScript in Rhino/Grasshopper

I’m encountering an error when trying to load a “TorchScript model” inside Rhino/Grasshopper using RhinoCode. The script I’m using is: model = torch.jit.load(model_path) However, I get the following...

View Article


Image may be NSFW.
Clik here to view.

Install Packages bug?

Trying to install aubio I get a bunch of errors: what does this mean? and then I get this error when I try to install something else: Thank you! 9 posts - 2 participants Read full topic

View Article

No Function Signature in CPython

I’ve recently transitioned from Rhino 7 to Rhino 8, and I’ve noticed a change in GhPython’s behavior. In Rhino 7, when using rhinoscriptsyntax or other libraries in GhPython, the function signatures...

View Article

Event handling - ModifyObjectAttributes triggered by AddRhinoObject

Hello, I have 3 event watchers running. class TimberEventHandler: def __init__(self): # Enable the event handlers Rhino.RhinoDoc.AddRhinoObject += self.OnAddRhinoObject...

View Article
Browsing all 4118 articles
Browse latest View live