Python Sorted by X and after by Y
Hello, I don’t understand the sort method in python, and i need today to sort geometry with the X value and the Y value… for example i select circles, and i need that python sort them like this: i...
View ArticleRhinoCommon UnrollSurface differs from UnrollSrf command
Have a look at the file in attachment. When I use the UnrollSrf command I get a flat polysurface with smooth edges. When I use RhinoCommons UnrollSurface I get a surface with ugly jaggered edges. How...
View ArticleCreateFromSweepSegmented problem
Hello I test CreateFromSweepSegmented with more options but didn’t work, what’s wrong? sweep test.gh (12.2 KB) 1 post - 1 participant Read full topic
View ArticleScript to toggle all surface normals outward?
We are developing a plug-in for Autodesk PowerMill to achieve fully autonomous CAM programming launched from Rhino. To succeed with autonomous 5-axis programming we need to make sure all the surface...
View ArticleIs there any plan for Line style plugin?
Hi there, I am looking for a feature that shows line-style presets in a list; name, colour, layer, pen for construction detail drawings (Similar then in Revit). 1 post - 1 participant Read full topic
View ArticlePython libraries inside grasshopper
Hi! I am trying to create a script in ghpython and wanted to install some libraries. I wanted to use pytorch, numpy and other libraries for creating my own genetic algorithm. Do anyone know how to...
View ArticleCall a function In Python script
In Rhino script. Sub ACAP() MsgBox “Hello World” End Sub I can call this sub by command “CAP” as alias as Rhino.AddAlias “CAP”, “_-RunScript (ACAP)”. In Python script. import rhinoscriptsyntax as rs...
View ArticleShootRay Rotation
Hello, I am attempting to use the Rhino.ShootRay command in RhinoScript VB. I need the ray to do rotations in azimuth and elevation, but I cannot get it to rotate. I have tried to change the vector...
View ArticleSaving a specific area of the viewport as an image
Hi, I’m looking for a way to save as a .jpg or .png file the elements that appear inside a specific area of the viewport and at a custom resolution . I was thinking about a Python script in...
View ArticleBoundingBox problem
hello, i’ve got a problem with the rs.boundingbox(): I’ve a rectangle on the WorldCPlane, but my script doesn’t calculate the good bounding box: normaly the value of bbox[0] must be the value of...
View ArticleHelp with rs.pointarraytransfrom(x, rs.xformmirror())
Hello since my script surrounding rs.Pointarraytransform(x, rs.XformMirror()) does not work the way I would like it to, it would be amazing if you can point out the mistake I made. Ive tryed for days,...
View ArticleSelect Objects by type
I’ve got a list of Rhino.DocObjects how can I extract only curves and points of this list? I tried in Python with if rs.IsPoint(obj) or rs.IsCurve(obj) or rs.IsPolyline(obj): objetretour.append(obj)...
View ArticleSend Password to Application using a script
We using a customised software for our clients. Once the the software is installed on a clients PC with Windows 10 the software is open and shows a activation field. We would like to use a script to...
View ArticlePythonscript Rotate Object Azimuth and Elevation
Hello, I am using the pythonscript tool in rhino to create a command, so not rhinocommon. I am trying to create a line that rotates in azimuth and then rotates in elevation. The issue I am finding is...
View ArticleText Field
hi I need to run Text Fields Form(window) with python scrip in my plugin. please guide me in writing code . 1 post - 1 participant Read full topic
View ArticleHelp beginner python script (functions and classes)
Hello everyone! I am a beginner with Python for Rhino and I would need your help with the following script. I am trying to generate “Tooth” in-between two surfaces that I would later extrude, it would...
View ArticleImporting ghpythonlib.components second time ERROR
Strange behaviour that I cant understand: In my script I got import ghpythonlib.components as ghc and when loaded for the first time it loads like this: * Loading Grasshopper core assembly... *...
View ArticleCrash Grasshopper in sweep2(by start and end /Point)
in Rhino 7, 7.14.21362.1300 sweep2 in c# in run crash rhino and grasshopper but in Rhino 7 SR14 2021-11-23 (Rhino 7, 7.14.21327.17001 it is ok in Rhino 7 SR14 2021-11-23 (Rhino 7, 7.14.21327.1700 in...
View Article# No (batch of course) Block Rename Tool?
Is there any way to do a batch block rename without resorting to python or grasshopper?? Basically I want to be able to do basic regex substitution. Something like: search “foo_someType_” and replace...
View Article