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

IronPython is super slow on sets and dicts with wide spanned integers

Could someone please verify that the following code takes superlong in Rhinos IronPython: offset = int(1E6) array = range(100000) + [n + offset for n in range(100000)] set(array) Please note that: the...

View Article


RhinoScript vs. Python Scripting

I was wondering if someone could suggest which scripting I should research for my purposes. I’ve able to write a macro that gives me tangent/perpendicular lines to a curve at specific point. But I am...

View Article


Modify script to remove trailing Zeros

I do have the following script that generates a cutting list and I need to modify so that the generated values to remove the trailing Zeros from the values. I do need 100.5 if it that is the result...

View Article

Image may be NSFW.
Clik here to view.

XML camera settings

hi Guys i am trying to import xml camera settings, but not sure how the values would convert in the rhino camera settings can anybody give some advice? 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Python CurveCurveIntersection on list finds less than CollisionManyMany

I need to test a list of many co-planar curves to see if any of them intersect with any other curve in the same list and return True/False values that I am feeding into a Python Script. I was using...

View Article


Python scripts on Mac

Hello Everyone, I am trying to run python scripts on Mac against Rhino files and nothing works. It only might work if I am using builtin editor and run lines there (and execute them there). I don’t...

View Article

Image may be NSFW.
Clik here to view.

Points Polar in c#

Hi is there api for point Polar in c# If not ! We can create point by vectors // <Custom additional code> Point3d polar (Point3d bas, double ang, double offset){ var t =...

View Article

Export stl script

HI guyand girls I’am looking for something that can select all the 3dm file into a folder, and export each of them in stl… I have found some answer or script on the forum, but I haven’t been able to...

View Article


RhinoScript PLY to NURBS iges

Hi, I am new to using Rhino and Rhinoscript so I don’t really know how to code much here. I’m trying to code a simple code in Rhinoscript to automatically take a PLY file, use Quadremesher, and use...

View Article


Image may be NSFW.
Clik here to view.

DXF Layers versus Rhino Layers

Hey , This might not be a Rhino/3dm question but I’m trying to batch edit dxfs exported from Rhino using the python ezdxf library - I’ve managed to batch edit the dxfs in a directory by adding a new...

View Article

Image may be NSFW.
Clik here to view.

Interactive Palette Color of materials for Display Color and Layer Color

This script was conceived for use the interactive palette color of materials to edit the Display Color and Layer Color in Shaded Mode. All work occurs in Shaded Mode or any other mods without support...

View Article

Automatic layering into closed polysurfaces

I’m trying to automate something which I do pretty often - which is to cut 3 D shapes into 100mm (or some similar measure) (closed) slices. I’ve attached the model which is basically 2 concentric...

View Article

Image may be NSFW.
Clik here to view.

Odd results with Rhino.Geometry.Brep.CreateBooleanSplit()

For another thread, I was testing some sample code using RhinoCommon Brep.CreateBooleanSplit() and I ran into an oddity… It is creating a lot of empty split results and I can’t explain why. I am...

View Article


Image may be NSFW.
Clik here to view.

Call an existing detail view

Is there a way to call an existing detail view that already exists in a template file? This is the exact functionality I need, but don’t want the user input to select the objects. Also, can this be...

View Article

Trouble w/ Viewport Clipping+ DrawViewportWires

Q1: What am I doing wrong? I have a component that is Drawing label meshes to the viewport and the labels work great when they are in the midst of other Rhino geometry in the scene. However, I am...

View Article


Python class output

Hello everyone, I am relatively new to python and also the use of classes. I am trying to put the values from a class in an empty list. For some reason im getting “<main.DataSet instance at...

View Article

Maybe need a macro maybe not, help!

hey all! I have been trying to program in some macros but I am having trouble with one aspect. I have a macro that is producing a rectangle / box with a set height and I am trying to get an “L” shape...

View Article


ETO forms Import Excel and Run GH script via button

Dear fellow developers, I am working on the Rhino Eto form plugin. Regarding this I have a few questions: 1)Can a Button in ETO form be used to feed an excel sheet to a GH script? Note: The file Path...

View Article

Image may be NSFW.
Clik here to view.

Feeding the correct parameters to RC Intersection.MeshMesh()

Can someone put up the correct format for the arguments? First it wants at least 7 parameters… Second, it wants an IEnumerable(meshes) - won’t accept a python list of meshes - but when I try with...

View Article

Efficient way to print class values

Hello, Im looking for a efficient way to print all of the class variables from a class. I now use the following code, that works, but doesn’t really look efficient. for i in range(0, x):...

View Article
Browsing all 4146 articles
Browse latest View live