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

How to set material to the face of the Brep by api?

In rhino we can set material to every face of the Brep easily,but how to do this by api? 5 posts - 3 participants Read full topic

View Article


Insert a new InstanceDefinition of a Block into document

@dale I was wondering if I could ask you regarding some sample code you posted back in 2018 that might be obsolete or changed....

View Article


Image may be NSFW.
Clik here to view.

RhinoPython Vscode

Hey all, I have successfully installed the Rhinopyhton in both vsCode and in the system. However, when I typed in the python file, there is no autocomplete. Can’t import any rhino nor any syntax from...

View Article

Applying random integers to a list

Hi, I am stuck and hoping someone can help please… I have successfully generated circles with random radii from a list of points and I am trying to then get random lengths of extrusions from the...

View Article

How to create a custom data tree?

Hi there! I am trying to create a custom data tree with one branch {0;1} and insert there a list of data. But apparently, I have written something wrong. Would you point out my mistake? import Rhino...

View Article


Join Objects by Material

Hi there, can someone give me a hint on how to iterate trough the geometry and join objects by their Material? I am quite new to scripting in Rhino, and the difference between RhinoCommon, and python...

View Article

Get dimension point

Hello everybody, Is it posible with python to get the points of a linear dimension? because i dont see any function in the website. Thanks in advance, Jose Verdu, 3 posts - 2 participants Read full...

View Article

Attribute 'Intersect' of 'namespace#' object is read-only

If I’m not mistaken this script used to work. Perhaps something has changed since it successfully ran. As always, any help is greatly appreciated. ~ David my_emillio_05_18_22.py (4.7 KB) 7 posts - 3...

View Article


Image may be NSFW.
Clik here to view.

Text Object - Group by Character?

Hello Please, is there a way to get “Text Object” grouped by single characters? For example “i” or “j” character creates two curves or surfaces. I would like to somehow type in a text and get it...

View Article


Image may be NSFW.
Clik here to view.

Python appears in cmd

Hello all I was interested to learn programming always. Years ago, I began learning C# partially but left it later. Now, my elephant remembered India again, and the eagerness dominated me to learn...

View Article

Global Scripts Vs. Rhino version-specific scripts folder on macOS?

Hi, What’s the role of /Users/<username>/Library/Application Support/McNeel/Rhinoceros/Scripts? I always thought it would be a parent directory to the scripts directories in the version-specific...

View Article

How to customize the information displayed in the Rhino window with PY

How do I use py script in rhinoscript to implement custom display modes such as showing the length on the curve or showing the sequential number of control points when moving the curve or adjusting...

View Article

Numpy and scipy in Rhinopython

Hello everyone, I am working in Rhino 7 (64 bit) and using a lot of Python scripting. It would be generally really useful to be able to use numpy and scipy for some of their built-in algorithms. I...

View Article


How to clear screen before drawing

Hi there, I am trying to clear the screen before I draw my object so that every time I update my script the old display geometry is cleared and redrawn Below is the script I want to add to run and be...

View Article

Panel Ids?

Hi all what is Ids for Boxedit 1 post - 1 participant Read full topic

View Article


Multiple Get Objects

Hi, I have run into an odd issue with my script. I want to get a second edge loop from a subd, but the Rhino document doesn’t prompt me for another selection. I’m guessing that the results of the...

View Article

Image may be NSFW.
Clik here to view.

Batch HSV adjustment

Hi there, I’m wondering if it’s possible to do batch colour changes/shifts of multiple layers or objects in terms of Hue, Saturation and Brightness? Sometimes after doing test prints and seeing the...

View Article


Problems with csv in a python plugin

Might have found a bug in the csv implementation in IronPython. I tested all this with Rhino 7.18. When importing a csv file there is a difference with how it treats the file when it’s loaded in the...

View Article

Is it possible to catch Rhino Onload event using Python

Is it possible to catch Rhino Onload event using Python, Like C#, Thanks! public class CollapsibleSectionUIPlugIn : Rhino.PlugIns.PlugIn { public CollapsibleSectionUIPlugIn() { Instance = this; }...

View Article

Image may be NSFW.
Clik here to view.

Python 'IndexOutOfRangeException' error on Rhino Geometry RayShoot

def rays_intersect(plane, rays, context): intPs = [] for ray in rays: ray_from_plane = rg.Ray3d(plane.Origin, ray) intP = rg.Intersect.Intersection.RayShoot(ray_from_plane, context, 1) if intP ==...

View Article
Browsing all 4118 articles
Browse latest View live