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 ArticleGlobal 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 ArticleHow 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 ArticleNumpy 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 ArticleHow 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 ArticleBatch 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 ArticleMultiple 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 ArticleProblems 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 ArticleIs 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 ArticlePython '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 ArticleHow 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 ArticleAdd .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 ArticleRhinoCommon 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 ArticleSurface 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 ArticleOffset 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 ArticleHow 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 ArticleAdvantages 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 ArticleGetObject - 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