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

Image may be NSFW.
Clik here to view.

How to disable clipping plane via script (RemoveViewportId) method

I’m can’t figure out how to make RemoveClipViewportId method to work. I couldn’t find any example on the forum yet. ClippingPlanes seem to have the same ViewportIds property after running this method...

View Article


Image may be NSFW.
Clik here to view.

Kangaroo: cast goalobject to Igoal in python

Hi. I am trying Anders Holden Deleuran’s python script. Does anyone know how to solve this? Thanks! 3 posts - 2 participants Read full topic

View Article


Moving a point using an existing vector3d but changing its length?

So my code has a vector that I already created (from a centroid to a specific curve), now I want a point in the middle of that curve to move back using the same vector (aka direction), but not to the...

View Article

Image may be NSFW.
Clik here to view.

How to Change the active viewport to given named views

Is there a way to control what view is showing in the viewport in the grasshopper python environment? The reason I ask this question is I am trying to see if I can achieve a batch view snapshot...

View Article

Image may be NSFW.
Clik here to view.

How to use *.gha file as assembler like c# component in visual studio?

How to use*. gha file as assembler like c# component in visual studio? @DanielPiker @Mahdiyar 2 posts - 2 participants Read full topic

View Article


Layer attributes (color and material) from one rhino file to another

Hello. I have several files with the same, or with very similar layers. In one of these files (let’s call it FILE A) I have the layers set up with the correct display colors and rendering material...

View Article

Image may be NSFW.
Clik here to view.

How can i use the variables entered at eto window in another code

Hello I haven’t been programming for long and would like to use an entry in an eto window for another code, can someone help me. Thank you I mean how can i use the Variable which entered here:...

View Article

"TryGetArc" limitations?

I’m extracting isocurves from piped surfaces that I know should be exactly or well approximated to round in at least 1 direction and it’s not working well at all. Could there quirks to the nature of...

View Article


Image may be NSFW.
Clik here to view.

Auto Make Snapshot active by name

Hi, I managed to set selected Rhino Views active, when I try to do the same thing to snap shots, I have this 2 troubles. I can’t get the snapshot obejct using a similar way. I am not sure when I push...

View Article


Image may be NSFW.
Clik here to view.

TriRemesh Issue

Can anyone explain this? Using the component to remesh my Mesh is okay, while it returns a null by using code. Many thanks… TriRemeshIssue.gh (9.7 KB) 6 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

How to get coordinates of a viewport corners?

I’m trying to automate SelCrossing <Point1> <Point2> command to select everything visible in the current viewport (detail view on a layout sheet). What’s the best way to “convert” viewport...

View Article

If extrusion object IsCylinder

According to the documentation Extrusions have an IsCylinder method, but in my code it is says an ExtrusionObject has no such attribute…? I guess I need to break it down first? Or do I need to cast...

View Article

Image may be NSFW.
Clik here to view.

Getting help from commands already in Python code

I find it very useful when I start yping a RhinoScript command that as soon as I hit the “(” I get a nice summary of the command and what the parameters are… like this: I am wondering though, how I...

View Article


Image may be NSFW.
Clik here to view.

Line distance error in Windows11 22h2

line_min_dist.gh (16.2 KB) When I update Windows11 21h2 to 22h2 and use Line.MinimumDistanceTo(Line.MinimumDistanceTo Method (Line)) between two parallel lines, incorrect result(0.0) returns sometime....

View Article

Equivalent of CreateRegions command in RhinoCommon

Is there an equivalent of CreateRegions command as applied on non-manifold PolySurfaces that can be called from the grasshopper python script component? I couldn’t find anything in the RhinoCommon...

View Article


Image may be NSFW.
Clik here to view.

rs.ObjectColor() always returns A (transparency) value as 255

I believe I reported this a long, long time ago, but rs.ObjectColor() still always returns 255 (fully opaque) for the A value of a color, even if it is not… Run the following scriptlet on an object...

View Article

Using Chat GTP to write Python scripts for Grasshopper

Hi! To help me troubleshoot the calculation order for a big defenition I have, I would like to visualize the draw order of the components on the canvas. This requires some scripting in which I am not...

View Article


Surface vs BrepFace

What’s the difference between a surface and a BrepFace. I know the Rhino UI uses the term surface while the development environment uses both. Is a surface similar to a brep face? What’s the...

View Article

Ghpythonlib Create Material

Running into a Goo error: "Warning: Custom Preview: input 2 material. error: Data conversion failed from Goo to Shader assignedColors = [‘(105, 26, 64)’, ‘(158, 54, 104)’, ‘(246, 169, 206)’, ‘(253,...

View Article

Python connect mysql db

Hello everyone, I’m creating a python script for Rhino, a form with data that will then insert them into a mysql db, but I can’t install the mysql-connect or pymysql module and I don’t know if it’s...

View Article
Browsing all 4159 articles
Browse latest View live