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

Image may be NSFW.
Clik here to view.

Clustering a list of numbers

@Petras_Vestartas wrote: Hi, I am trying find a method how to extract a list of numbers from a list that are the most self-similar? I would like to filter out values that stand out too much from a...

View Article


RhinoCommon - Pre-and Post- select subobjects

@Helvetosaur wrote: Last one for today - I am trying to figure out how to include a preselected set of subobjects (say, brep edges) into a selection process where one can continue selecting more edges...

View Article


Image may be NSFW.
Clik here to view.

C# Get sub-layer objects from external rhino file

@shaunwu25 wrote: Hi all, I am trying to use c# script to access an external rhino file in my local document folder. The question is I cannot retrieve the objects if it is located at the sub-layers. I...

View Article

Standard Python Modules

@eric.bunn wrote: Is there a way to access standard python modules from the Rhino Python Editor? Specifically win32api Eric Posts: 4 Participants: 2 Read full topic

View Article

Image may be NSFW.
Clik here to view.

Ghpythonlib.components Split surface **Solved**

@seghierkhaled wrote: Why ghpythonlib.components SurfaceSplit don’t work properly? split.gh (62.4 KB) image1546×673 237 KB Solved : Curves input must be List Access image1003×583 125 KB Posts: 1...

View Article


Image may be NSFW.
Clik here to view.

Flatten list of list in Grasshopper Python

@kts.nguyenhoangloc wrote: Dear all, I have a list of list and want to flatten it in python. I try a for loop and get a runtime error. Please advise what to be modified. Appreciate your support! Loc....

View Article

Image may be NSFW.
Clik here to view.

Hatch list in Ghpython

@seghierkhaled wrote: Hello, i create a script to add hatch but the problem it can’t detect list hatch automatically unless i open options and select hatch than click ok. This happen also with other...

View Article

Rhino Window Size and Position

@eric.bunn wrote: Hi, Is there a way to set the size and position of the Rhino Window using Rhinoscript or the Rhino API? I want to set the size to 50% with the left of the window at the screens...

View Article


Using some letters on a text

@kadirsyk wrote: Hi All, I have a question about texts on rhino. ı gave some various names to parts like “CONST 20MM YELLOW” or “CONST 15MM BLACK” by construction script. I just want to get thickness...

View Article


Image may be NSFW.
Clik here to view.

Example of using a Class in RhinoPython

@Willem wrote: Hi All, I’ve been wanting to post an example of using classes in RhinoPython for a long time. Inspired by the recent contamination simulations I found a good example of using a class....

View Article

Eto forms resolution

@onlyforpeace wrote: Hi, I made an eto form to fill the DocumentUserText, but now I want to finalize it at home, but my workstation at the factory has a resolution of 2560 x 1600 or something like...

View Article

Python add IsSubD

@Alen_Russ wrote: Can you add IsSubD for Rhino python? Posts: 2 Participants: 2 Read full topic

View Article

Extract the axis of extrusion of the profiles (I-beam,C-beam..)

@msgatrong wrote: Hello, fiding_axe_extrusion.3dm (1.2 MB) I am looking for a script which allows to extract the axis of extrusion of the column or beam as profiles (I beam, H beam, C beam …) or the...

View Article


Get Volume Centroid without creating the point

@eric.bunn wrote: Hi, I’m trying to pull the volume centroid of polysurface using the code below and I get the following error: “Message: getset_descriptor is not callable”. Can anyone explain what I...

View Article

Copy nested blocks in place -- python

@Rickson wrote: i’m trying to copy out the nested blocks but having trouble getting them back in their instance locations, they go back to 0. Do i need to create a plane at their instance origin and...

View Article


Image may be NSFW.
Clik here to view.

VectorAngle() returns 0 instead of 90

@Bogdan_Chipara wrote: Hi, I don’t understand why VectorAngle returns 0 in this situation. I’m trying to calculate the angle between U of the first surface and U of the second. Should be 90 degrees....

View Article

Image may be NSFW.
Clik here to view.

AddSweep1: closed option don't work

@seghierkhaled wrote: Hello, i try this code but closed option don’t work Help on function AddSweep1 in module rhinoscript.surface: | AddSweep1(rail, shapes, closed=False) | Adds a surface created...

View Article


Cannot call geometry properties in object variables in Rhino Python

@raylee14 wrote: Hi everyone, I have created some class objects with some geometries property insides However, when I pass those objects to other python components, I found that the geometries cannot...

View Article

Why call main() with this conditional?

@gwil wrote: So here is a snippet of code: def main(): counter = 0 #collect data GUIDs = rs.GetObjects(‘select objects’) #call my system class obj01 = MySystemClass(GUIDs, counter) if (name ==...

View Article

Image may be NSFW.
Clik here to view.

Is it possible to write a Python script to realize the function of path...

@w.wu wrote: Hi everyone, The path mapper is a powerful function to change the data tree path, however, if I want to realize it using a Python script, how should I do? Thanks! Posts: 1 Participants: 1...

View Article
Browsing all 5791 articles
Browse latest View live