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

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

RhinoCommon 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 Article


Image may be NSFW.
Clik here to view.

CreateFromSweepSegmented 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 Article

Script 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 Article

Is 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 Article


Python 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 Article

Call 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 Article

ShootRay 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 Article


Image may be NSFW.
Clik here to view.

Saving 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 Article


Image may be NSFW.
Clik here to view.

BoundingBox 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 Article

Help 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 Article

Image may be NSFW.
Clik here to view.

Select 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 Article

Randomize dimensions

(topic deleted by author) 1 post - 1 participant Read full topic

View Article


Send 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 Article

Pythonscript 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 Article


Image may be NSFW.
Clik here to view.

Text 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 Article

Image may be NSFW.
Clik here to view.

Help 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 Article


Image may be NSFW.
Clik here to view.

Importing 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 Article

Image may be NSFW.
Clik here to view.

Crash 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
Browsing all 4117 articles
Browse latest View live