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

Image may be NSFW.
Clik here to view.

Arch Intersection

Hi, I am working on an arch design and I have an issue I am struggling to fix; so the arch is made from a triangle, which has been mirrored to create an intersection. However, I want the two arch to...

View Article


Python loop

Hello, i,ve got a problem with a loop in python, i’m thinling it’s simple, but i don’t understand why python doesn’t make the last loop. this is my code: #coding: utf-8 import rhinoscriptsyntax as rs...

View Article


Rhinocommon Trim brep with opposite effect

I want to trim off some objects using a sphere. The Trim method will trim off everything outside the cutter, but I want to discard everything INSIDE it. Is there a simple way to flip this around...

View Article

Image may be NSFW.
Clik here to view.

Problem on generating multiple iterations

Hello, I would like to pick a random point in each generation to form a box. However, if I change the slide in grasshopper, it seems to recalculate the whole generation rather than to add a new one...

View Article

Image may be NSFW.
Clik here to view.

DWG Import Options dialog asks for manual input when run from script

3dm files that have dwg links (linked blocks) prompt for confirmation when opened - it becomes particularly problematic when vray Batch Rendering tries to open them - it can’t proceed without the user...

View Article


Create SectionView by C# Script Grasshopper

I’m trying to write a C# Script Create Section View through the Tekla API version 2020. I’m trying to output View and SectionMark , but I’m having a code problem. Anyone can help me? Thank you C#...

View Article

Mesh.Reduce() exception

Hello, I’m having issues while using the Mesh.Reduce(...) on any mesh (also a simple sphere). The RhinoCommon version I am using is 7.20.22193.9001. As an example, this is a python script reproducing...

View Article

Identifying straight cylindrical polysurfaces

Hi guys, In the attached file I’ve got a bunch of straight and curved tubular surface (that I didn’t make and are often broken into more surfaces than makes any sense) and I’m trying to identify and...

View Article


Orienting blocks to other blocks

Hello, I’m trying to set up a script to orient target blocks to host blocks. If the name of the target blocks is in the name of the host blocks then the targets will be transformed to the hosts. It...

View Article


Image may be NSFW.
Clik here to view.

Type mismatch 'GetObjects'

I’m using this plugin and, suddenly, I get the error message: Type Mismatch: ‘GetObjects’ Line: 70 Char: 1 These are the three places where I call GetObjects() Dim crvs crvs = Rhino.GetObjects("Select...

View Article

Script to change block geometry attributes to by parent

Hello, May i ask for a favour. A script which would go inside block definitions of selected block instances and set all geometry to by parent (color, linetype, … everything) + it would select all...

View Article

Rhino 8 and Python support

This is probably already answered somewhere so I apologize if it is repetitive. Feel free to attach it to the appropriate topic if you know. We are working on a virtual testbed MPC controls...

View Article

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