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

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


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

Panel Ids?

Hi all what is Ids for Boxedit 4 posts - 3 participants 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


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

How to use alias for object snap during RunPythonScript

When I enter an alias with macro for an object snap such as _CenterSnap while import rhinoscriptsyntax as rs rs.GetPoint() is waiting for input, The "Center" point picking option is available only...

View Article

Image may be NSFW.
Clik here to view.

Add .exe to Python Rhino PlugIn

Hello there! (watch out a newer to python rhino plugin dev) the main issue I am trying to distribute a small Plug-in for Rhino made by commands written in Python. Now, my commands call .exe with...

View Article


Python learning

Where can I learn python? 3 posts - 3 participants Read full topic

View Article

RhinoCommon Multipipe

Heyo, I can’t seem to find any method to create a multipipe through rhinoCommon. Does anyone know where this is or if it’s too new to be added to rhinocommon? Thanks! 1 post - 1 participant Read full...

View Article


Image may be NSFW.
Clik here to view.

Surface parameters from meshing

Hi, I have to mesh a trimmed NURBS surface (1) and need the surface parameters of each vertex (2). This can be done via the Mesh.CreateFromBrep and Surface.ClosestPoint operation. However, this is...

View Article

Offset Polysurface problem

Hello, Is there an equivalent function to Grasshopper’s Cap Holes Ex in RhinoCommon? I only found Brep.CapPlanarholes. I am trying to create a solid offsetted Brep using a GH custom component, calling...

View Article


How to change display mode using script?

Hello, I’m new to Rhino. I am trying to write a python script that changes the display mode to user-chosen display mode (by display mode I mean “rendered”, “wireframe” etc. I tried to use some script...

View Article

Advantages and Differences - Rhino.Python vs RhinoScript

Rhino.Python (Python Script) vs RhinoScript (VB Script) Are there any differences between these two? Is there any advantage in using one over the other? 5 posts - 3 participants Read full topic

View Article

GetObject - ESC to Cancel

In PythonScript when using the GetObject method the user could simply cancel out using the ESC key. In RhinoScript (VBS) this does not work. How do I allow the user to press the ESC key to cancel? 1...

View Article
Browsing all 5781 articles
Browse latest View live