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

Image may be NSFW.
Clik here to view.

GetPoint Not Working at Certain Angles

At the risk of sounding like a dunce, I’m having some issues getting my GetPoint to work reliably when the camera is positioned at certain angles to view objects that are far removed from the XY world...

View Article


Image may be NSFW.
Clik here to view.

Python: 4D Spiral formula problem

Does someone know what I am doing wrong? When I try to change my radius r-value it shortens the spiral. 20230419PointDistribution.gh (18.3 KB) stackoverflow.com Evenly distributing n points on a...

View Article


Python script that changes geometry of objects in document

Hello, I am trying in grasshopper to select all the meshes in the Rhino document and check if they are not closed, so that I close them using Rhino.Geometry.Mesh.FillHoles(), the script below runs...

View Article

Image may be NSFW.
Clik here to view.

Icon meaning?

I can’t find anything about what these icons mean in the Python Editor. Can someone explain them or point me to a reference? 2 posts - 2 participants Read full topic

View Article

Control Scripted placement of Dot within existing object's Bbox

Using this script piece based on a larger script by @Helvetosaur I played around with the variables, and researched, but couldn’t come up with anything consistent. Here’s the part of the script I’m...

View Article


Image may be NSFW.
Clik here to view.

How to numbering Surfaces by Z coordinate (MIN->MAX)

Hello. Could anyone help me to renumbering these surfaces by Z coorination order?(MIN->MAX) Plus,is it possible to export the surfaces with these number and edges length to Excel files? ※Surface...

View Article

Image may be NSFW.
Clik here to view.

Is the GetLocalTangentPoint method buggy?

Sometimes the GetLocalTangentPoint method identifies only one tangent spot on a curve when there are more than one tangent. Increasing the seedParmameter does not help. Why is the method not locating...

View Article

Image may be NSFW.
Clik here to view.

Displaypipe Problem. Two components can not be shown together

I have implemented using the displaypipe method to display, but I found that two modules cannot be displayed simultaneously. If they are separated, they can be displayed separately. But what I need is...

View Article


How to bake using the C# Grasshopper API?

Hello, I’m developing a plugin and I would like to automatically bake geometry generated by Grasshopper so it can be sent to a Unity application. Sadly I can’t figure out how to use...

View Article


Creating an arc line after selecting grip point on a surface

Hi, I am attempting to select points on a surface with a maximum distance between the grips of 200’. I have been able to write the following script, but what I really want to do is, after the first...

View Article

Image may be NSFW.
Clik here to view.

DarkMode c# Component page

hi everyone is there way(Script or code) to change white face of c# component to DarkMode or Custom color? 1 post - 1 participant Read full topic

View Article

Control layer detail properties via script

Hello, I’d like to control the properties of layers inside a detail (visibility, color) on a layout via RhinoScript but I didn’t find any relevant function. Is there any way to do that ? (For context,...

View Article

Image may be NSFW.
Clik here to view.

Rhinoscriptsyntax insert bug?

I’m trying to insert a block in python using a plane to define the rotation of the insertion. When I manually try the insert command and its parameters, everything works fine, but when using python to...

View Article


Image may be NSFW.
Clik here to view.

Alternative to Fin

rhinopython/spb_Fin.py at master · CADacombs/rhinopython · GitHub is similar to _Fin but with more options: If a naked edge is selected, its face may be automatically used as the “base surface”. The...

View Article

Make Script Editor "Pervasive?"

Is there a way to have it stay open when I startup an addition session (file) of Rhino? I know I can make Python Script Edit a Startup item, but I’d like to hold off on that. 5 posts - 2 participants...

View Article


Use of Rhinoscript within Excel VBA

Hello All, I am interested in automating some of the drawings that i need to use in my other work related software. That s why i would like to get a hold of the syntax of some operations that i can...

View Article

Image may be NSFW.
Clik here to view.

Double check RCommon

import Rhino import scriptcontext def CircleCenter(): go = Rhino.Input.Custom.GetObject() go.SetCommandPrompt("Select objects") go.GeometryFilter = Rhino.DocObjects.ObjectType.Curve...

View Article


Image may be NSFW.
Clik here to view.

Polygon Shelv

Hallo there, I have a given Surface in rhino. How can I construct a polygon mesh shelf as in the picture in grasshopper? The area point of every triangle (?) is moved. How can I achieve that? thanks...

View Article

Image may be NSFW.
Clik here to view.

Write a script for tiling object surfaces

Hello everyone, can this object have 6 faces? Can these 6 faces be spread out on a flat surface? After being spread out, the surface cannot be flattened. If there are many faces on this object, can...

View Article

What does (…, Optional) mean in API parameters?

What does the “Optional” mean in these parameters I keep reading? index (number, optional): the new material index Link to API page: Rhino - RhinoScriptSyntax 3 posts - 2 participants Read full topic

View Article
Browsing all 5938 articles
Browse latest View live