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

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


C/C++ speed in Python? Yes, using Codon

What is Codon? Codon is a high-performance Python compiler that compiles Python code to native machine code without any runtime overhead. Typical speedups over Python are on the order of 10-100x or...

View Article

Image may be NSFW.
Clik here to view.

Geometry.SubD.CreateFromLoft not being affected by addCreases parameter

I’m trying to do a SubDLoft in grasshopper using Python as there is no grasshopper command for that. I have 3 curves I’m using for the loft and I’m baking those 3 lines in Rhino and using the SubDLoft...

View Article


Deleting geometry from blocks using Python

Hello everyone, I’ve been trying to find a way to remove and add new geometry to nested blocks using Python. Using a recursive function I am able to change the properties of the nested geometry, but...

View Article

Rs. ExtendCurve keep giving "iteration over non-sequence of type int

I am trying to find the intersection of a line extension and a brep. It keeps to give the following error message. However, after I used print(type(line)) to check, “line” is not int. The line...

View Article


Snapshots Crashing The File

I have written a script utilizing rhinoscriptsyntax to create snapshots out of existing geometry. Simplified, it works like this: import rhinoscriptsyntax as rs objects = rs.GetObjects()...

View Article

Assign Existing Custom Material to Layer(s) within a script

I’m trying to assign existing (non-default) materials (by name or index) after the AddLayer portion of my script. Seems like it should be very simple, but I’ve tried my darndest to figure this out,...

View Article

Image may be NSFW.
Clik here to view.

Name of Blocks with a Prefix with Number Suffix

I have several blocks. I would like to add text below of each block with a constant Prefix and variable suffix. I have added an example. Is there any way to do that? I have a lot of blocks that needs...

View Article
Browsing all 5938 articles
Browse latest View live