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

Mesh.IsDuplicate in Api SDk?

is Mesh.isDuplicate in API SDK? Is the API for mesh As for Curve, BREP is available? If no, please add it Or what is the way to Remove mesh.duplicate in the current solution in the Grasshopper #...

View Article


Image may be NSFW.
Clik here to view.

Eto form: button clicked

Hi In this example of Mahdiyar How we can get which button clicked in realtime as output import Rhino import Eto.Forms as forms import Eto.Drawing as drawing class EtoButtons(forms.Dialog[bool]): def...

View Article


JSONDecodeError when using CreateBooleanUnion for curves

Previously my code created a boolean union between curves but it now seems to fail with no apparent changes made. I am getting the error: JSONDecodeError(‘Expecting value: line 1 column 1 (char 0)’)...

View Article

Image may be NSFW.
Clik here to view.

Is there any way to identify sub faces with equal area of subd or mesh?

Hello, Is there any way to identify sub faces with equal area of subd or mesh? Whether there are scripts that can be completed instead of manually selecting one by one. Thanks 1 post - 1 participant...

View Article

Deleting a layer, including its objects and objects within blocks

Is there any way of scripting this? Often imports from other software create needlessly complex layer structures - this would help a lot, without forcing the user to explode all blocks. 4 posts - 3...

View Article


Test rhinoinside: first step with Python but

Hello I try this to send and receive data between two components, it’s clear that the second component responds to slider changes but the string always empty What am I missing here? import Rhino...

View Article

Looking for a way to run a command after a block is updated

Hello all, I would like to have Rhino automatically run a command after a block has been edited. So far my best attempt at achieving this has been with the Alerter command, which I have tried to set...

View Article

Read and write data to and from external files in Python

I have used VB script for 20 years and now using Python in Rhino 7.0 so quite a change for me. In the past I have used Rhino Save Settings and Rhino Get Settings to read data to and from INI style...

View Article


Image may be NSFW.
Clik here to view.

rs.IsDimension() complaint

The method rs.IsDimension() is mis-named. It should be named rs.IsAnnotation() - because it includes not only all types of dimensions, but also text and leaders. This means that if I want to find all...

View Article


Image may be NSFW.
Clik here to view.

Getting text object bold/italic/underline info via RhinoCommon

In the text editing/properties box, there are buttons for Bold, Italic, and Underline: These are “modifiers” added by Rhino to the text, they do not represent changing type styles. Looking at all the...

View Article

Uninstalling old plugins

Morning, Does anyone know if there is an updated vewrsion of the Cam Lens Script. This is the one I am currently working with. Cam_Lens_091013 Cheers, Ian 1 post - 1 participant Read full topic

View Article

Blend Curve Method Overloads

Hi, Is there a way in python to define a blend curve that has a blend continuity to a set curve, and for the other point (the end) to be at a point? For example, specifying tangent blending to a...

View Article

Batch opening of multiple files

I have a list of 50-ish files, each one requires to do small adjustment. Picking files one-by one from a long list is painful and risking omitting some. Are you guys having any trick to make Rhino...

View Article


Batch Insert Step files with Insert Options as Rhino Block Instance

Hello. All, Similar to Batch Import Python script in the forum. I was looking at ways to Batch Insert Step files 100’s of them as Block Instance with Default Insertion Point as (0,0,0) Could it be...

View Article

Image may be NSFW.
Clik here to view.

Simple python script not working

2 posts - 2 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

Splitting / Trimming with Python

I have a spiral shaped cut around a cylinder, where I want to remove the strip that is in the spiral shape. I am trying to do this programmatically with python, but I’m not so sure where to begin with...

View Article

Code errors not thrown in DisplayConduit Functions

Hi all, I’ve noticed that when working with the display conduit class in python, errors in functions such as PreDrawObjects(), DrawOverlay, PostDrawObjects etc are not shown with the usual...

View Article


Image may be NSFW.
Clik here to view.

Automatic snapshots in different Rhino viewpoints. Python script

Hi everyone, I am struggling to create a python script within GH to make snapshots automatically from Rhino baked geometries to .png files. I found this amazing script made by @AndersDeleuran which...

View Article

Connect SQ LITE 3 with Eto form

I have code with sqlite 3 with python. It include 2 class with eto form is “PRIN” and “STAB” (Class “STAB” only for call show modal for class “PRIN”) and 1 database ‘STAB.db’ with sq lite 3 (Just...

View Article

Image may be NSFW.
Clik here to view.

rs.GetPoints() - base_point argument not hooked up?

I was playing around with something and I stumbled on this… I looked at the code for rs.GetPoints() and although the method’s input arguments do include an optional argument base_point (starting...

View Article
Browsing all 4117 articles
Browse latest View live