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

Aligning seams of closed curves?

@p1r4t3b0y wrote: Hi, I’m currently looking for a pythonic way to adjust/align the seams of a collection of closed curves? Is there a quick way to achieve this? Thanks. Posts: 1 Participants: 1 Read...

View Article


[issue] brep trim

@ivelin.peychev wrote: Could anyone, please, enlighten me why this code doesn’t work: ################### ### trim by box ### ################### import System import rhinoscriptsyntax as rs import...

View Article


Is there a built in API method to format a length value into a desired unit...

@Jun_Wang wrote: for example if file unitsystem is feet, it will format 26 into 2’ 2", and 26.125 into 2’ 2-1/8" and also take into consideration the accuracy in the file setting, and if the...

View Article

HiddenLineDrawing - how to get ObjectID of the HiddenLineDrawingSegment

@AleksandarSM wrote: Hello, when I use HiddenLineDrawing to create 2D drawing of multiple objects, is there a way to find out which line is from which object? - preferably to get object guid I use...

View Article

How to create a InstanceDefenitionTable

@flokart wrote: Hi all, i have no idea how to create or Construct a Table so i can fill it with objects. Any tip how a InstanceDefenitionTable can be constructed is very welcome. thanks in advanced...

View Article


Image may be NSFW.
Clik here to view.

Growth branching pattern

@kareem2292 wrote: Dear All (Developers, Architects and Engineers), I am a master student at TU Vienna. I am working on a housing project , in which I want to add a 2D population of points, then I...

View Article

Get InstanceReferences from File3dm

@flokart wrote: Hi all, Is there a way to get InstanceReferences Objects from File3dmInstanceDefinition in a similar way like from Rhino.RhinoDoc.ActiveDoc.InstanceDefinition import Rhino as rh import...

View Article

Help: Rhino.Geometry.Mesh.CreatePatch() questions

@Holo wrote: Hi guys, I need some help with Rhino.Geometry.Mesh.CreatePatch() 1- It seems that innerBothSideCurves needs to be closed curves, but I don’t want that, so how to I work around that in the...

View Article


Image may be NSFW.
Clik here to view.

Clipping plane settings - turn off show edges via script

@revink wrote: Hi all, Does anyone know if there is a way via python scripting to turn off the “show edges” option from the Display - clipping plane settings from all viewports ? Many thanks in...

View Article


rhinoscriptcontext.AddMaterialToObject(object_id) purges UserText

@Willem wrote: Hi, I found that after running rhinoscriptcontext.AddMaterialToObject(object_id) to add a material to an object, all it’s Usertexts are purged: import rhinoscriptsyntax as rs id =...

View Article

How to trim three curves by each other?

@ivelin.peychev wrote: I cannot find a proper method in RhinoCommon to do so. There are two overloads (three but the first do exactly the same thing so…): Trim(Double, Double) Trim(CurveEnd, Double)...

View Article

How to use Brep.CreatePatch method?

@ivelin.peychev wrote: https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Brep_CreatePatch_1.htm more precisely this part: System.Collections.Generic.IEnumerable<GeometryBase>...

View Article

Image may be NSFW.
Clik here to view.

rs.AddText() ignores font_style=1

@Asterisk wrote: It doesn’t font_style=3. image.png766×65 3.17 KB image.png1033×483 16.4 KB Posts: 4 Participants: 3 Read full topic

View Article


How to get single "event" from intersections

@ivelin.peychev wrote: Is there a way to get a single item out of the: <Rhino.Geometry.Intersect.CurveIntersections object at 0x0000000000000086 [Rhino.Geometry.Intersect.CurveIntersections]>...

View Article

Image may be NSFW.
Clik here to view.

How to order a list of curves. Ideas?

@ivelin.peychev wrote: Could anyone suggest an algorithm to arrange a set of curves where each curve is intersected only by two others in that list. I need to order this list like this: even if...

View Article


Image may be NSFW.
Clik here to view.

Multiple Intersection of Curves (Iterative)

@ShynnSup wrote: Hi guys, I am facing a problem that involves the multiple intersection of lines. The issue is that I need to trim the line at its first intersection. When this trim happens, the now...

View Article

Export line with a name from Rhino to AutoCAD

@cotoc_george wrote: Hey there, I’m currently working on a script which does a intersection of a surface with other surfaces that are stored on a layer(Surfaces4intersection). The surfaces from the...

View Article


[VB] Trying to override write() and read() directly inside vb script component

@thriceashians wrote: Hi ive been hunting for all the threads regarding this in the grasshopper forums, but it seems like its not possible to do because of compilation. Basically i have been trying to...

View Article

C# creating automatic sliders

@tognatta.aditya wrote: Hey ! I am trying to create multiple sliders based based upon an integer input. I have modified James -ramden code:. The problem is it works fine on the first attempt, but the...

View Article

Image may be NSFW.
Clik here to view.

Explode Block - preserve texture mapping (rs.ExplodeBlockInstance)

@Czaja wrote: I can’t find any solution to my problem - Automated exploding blocks with preserved texture mapping of the output geometry. In my example, geometry inside the block definition is using...

View Article
Browsing all 5793 articles
Browse latest View live