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

Merge All Coplanar Faces from python

Forgive me if this is an easy to find answer, I’m not finding the forum or api searching useful in this case. I’ve made an object by BooleanUnion’ing multiple rs.AddBox() results and I can still see...

View Article


Bug in object attributesin RhinoCommon

When I use the script it Ungroups the grouped objects and deletes all Usertexts? Is this a bug? def ChangeMaterial(matIndex, ObjectID): attr = Rhino.DocObjects.ObjectAttributes() attr.MaterialIndex =...

View Article


Image may be NSFW.
Clik here to view.

rs.ShrinkTrimmedSurfaces() broken for certain input cases

Was just testing something this morning and ran across this. The help for rs.ShrinkTrimmedSurface() implies that it should accept either surfaces or polysurfaces. image826×428 10.6 KB However if I...

View Article

Looking for rhinoscript-syntax equivalent to _IntersectTwoSets Command

Dear forum members, I currently working on a script to automize my rhino workflow. The first part of the script creates multiple polylines and stores them in the array arrChosenLines(i) . The second...

View Article

IronPython 3.4 availability

Hello, IronPytnon 3 is available on the IronPython website. Is there a guide how to make use of it in Rhino and Grasshopper. https://ironpython.net/ 3 posts - 3 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

Double convertTo.int?(Help)

I want Covert(double to int )… For use as index(Because the Random number produced from Double) how? index1780×618 153 KB covert.int.gh (9.4 KB) private void RunScript(int seed, double lenght, double...

View Article

Python OnMouseDown failure on mac

Hi @Alain and @dan, i am trying to port some python scripts from windows to mac which override Rhino.Input.Custom.GetPoint and use custom code in the OnMouseDown and OnMouseMove events. The problem...

View Article

Set object material in Python

Frustrated with how slow the material drop down is (sometimes hangs forever), I’m trying to create a quick dialog that lets me assign a material to an object with a listbox and no thumbnail previews....

View Article


Creating the center point of a rectangular plane in python

Hello everyone, I am running through an issue using RhinoScriptSyntax. I want to create planes along a curve and I want them to be centered on the curve. I am using the rs.PlaneFromNormal() function...

View Article


Porting GHPython code to C++ DLL

Does anyone know how to run a GHPython script through a C++ dll with the intent of drastically increasing calculation time? I got the initial idea from a discussion here (300X Speedup by Porting...

View Article

Missing ghpython documentation?

I can’t seem to find any documenation that makes reference to the ghenv functions/classes in ghpython. I’m talking about lines like the following: ghenv.component.message or...

View Article

Documentation on System.Drawing

I m creating a script where for setting up the layer struture that i would like to have. Using as starting point from python documentation for Addlayer command there is the following example: import...

View Article

Rhino.3dm - No module in grasshopper

Hi guys. I have R7. I want to use rhino3dm library in python. A download it with cmd, successfully. I see library in Visual Code software but python in grasshopper write me “No module named rhino3dm”...

View Article


GetMultipleObjects and preselect

I’m using Rhino.Input.RhinoGet.GetMultipleObjects with filters but if the user preselects objects, they are able to select objects that should be filtered out. This is fine - everything works and the...

View Article

Image may be NSFW.
Clik here to view.

Auto-viewcapture all views to JPEG file

Hi all, I have done a script to export all views to JPEG file. It works in Rhino5, but for some reason it doesn’t work in Rhino6… Does anyone know why? Thanks for any suggestion,...

View Article


rs.AddCutPlane() bug

In testing something from another thread I stumbled across a bug in the rs.AddCutPlane() method which tracks back to a bug in Rhino.Geometry.PlaneSurface.CreateThroughBox(line, normal, box) where the...

View Article

Text Field

hi is it possible to run Text Field dialog form directly by scrip in python (not from text/fx)? 1 post - 1 participant Read full topic

View Article


Get formula

hi i need to get fx formula from text which put on cplane by python 2 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Help! rhinoscript error

hello, since the rhino update, of this morning, i ve got an error message when i launch a rhinosrcipt: ! _-Runscript ( Option Explicit 'Script written by <insert name> 'Script copyrighted by...

View Article

Image may be NSFW.
Clik here to view.

RhinoInside| Brep.CreateFromLoft() - empty array of Brep

Hey there, unfortuneatly I am experiencing problems with rhinoinside, which I couldn’t resolve by myself. I asked a similar question half a year ago, but never got a satisfying answer, maybe due to...

View Article
Browsing all 5746 articles
Browse latest View live