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

Image may be NSFW.
Clik here to view.

Python-Script examples, creating meshes?

Hi…, I am a part time scripter. I want to write a script, which generates an array(e.g.10x10x10) of meshboxes cut by a sphere. The boxes should be approximated and not have more than 6 faces. Where to...

View Article


Image may be NSFW.
Clik here to view.

Baking List Of Views

Hi everyone, I’m working on a python script that adds named views to the document by receiving an input from the query Viewports node in Rhino 8. I am using the new Rhino 8 viewport nodes to create...

View Article


Image may be NSFW.
Clik here to view.

RemoveHoles method doesn’t work

Hi everyone, I am trying to close an inner hole with this script but it returns a null. Does anyone know what I am doing wrong? Thank you! 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Error at export time

I do have the following script: import rhinoscriptsyntax as rs import os def AutoExportWithOrigin(): ids = rs.GetObjects("select objects to export", preselect =True) if not ids: return bb =...

View Article

Image may be NSFW.
Clik here to view.

Shortest path with Python

Hi In this example i find the shortest path using Short Walk plugin Is there a way to find this path with python ? find_path.gh (20.2 KB) 3 posts - 2 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

How to encode a list

Encode1.gh (2.4 KB) I want each sublist in a to contain all the elements from x at least once. If an element was missing, it has been replaced with a repeated element from the sublist. @Mahdiyar 3...

View Article

Image may be NSFW.
Clik here to view.

Grid division of floor plans

How to find the different placement of units on a floor plan in a grid cell while considering minimum and maximum area limits for each type of housing, which is 10 cells for two types of housing and 6...

View Article

Image may be NSFW.
Clik here to view.

Batch thumbnail replacing for Rhino Materials

Hello everyone. Recently I’ve discovered there’s a possibility to replace a thumbnail of the Rhino Material File (.mtl). I have plenty of my own materials and replacing their thumbnails would make it...

View Article


How to render a model with python totally?

Dear All, I want to render a model with my own settings by using python scripts totally. Would you please give me one simple example code? I am new to rhino.python and get muddleheaded with the api...

View Article


Display Pipeline and DrawZebraPreview problem

Hello, as you see in the video ZebraPreview always visible even the brep is not connected or recompute the solution , and when i open ghpython editor and click ok or test the brep disappears How to...

View Article

Export an object as a dxf file with RhinoScript

Hello I would like to be able to automatically save each object of my rhino model in a different dxf file. I know it can be done with a rhino script, but I don’t know what code to use to export...

View Article

Multiple detail view selection

I’m wondering is it possible to select all detail views in the whole document and change its print width which is set to “no print” by default. 5 posts - 3 participants Read full topic

View Article

Just got started with Python in Grasshopper

Hello, everyone. I’d like to learn Python, but am not sure if I should invest my time. I’m an architecture student. What are the reasons you are using Python in Grasshopper? 1 post - 1 participant...

View Article


Bounding Box Indeces

Can someone explain how to control where (a point, text, etc) gets added in relation to a bounding box? If this is the bottom-center of a 3D bbox: bot_ctr_pt=(bb[0]+bb[2])/2 and this is the...

View Article

LinearDimension DistanceScale issue?

Hi, I try to update linear dimension distance scale. I want to update linear dimensions over a detail (layout) which its scale have been changed. When I use RhinoObject.CommitChanges(), visually it...

View Article


Image may be NSFW.
Clik here to view.

System.Guid different value

Hi how could I get the same green reference in another block where the variable arrive as an input but give the red box? System_guid.gh (18.1 KB) 2 posts - 2 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Developable loft weird result

Hi Why developable loft don’t follow the arcs? dev_loft.gh (7.4 KB) 1 post - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

Modify Rhino PBR Material With GH Python Component

Hello, I’m using the new Rhino 8 Material nodes to create custom materials from within GH but the features missing are being able to control the Roughness, Opacity/Transparency of said materials. I am...

View Article

Image may be NSFW.
Clik here to view.

Combine Trimmed Surfaces that share the same untrimmed reference surface

Hi All, I’m wondering if there is a way to obtain a single surface from multiple trimmed surfaces that all have the same untrimmed reference surface. To provide an example, I have 2 surfaces that are...

View Article

Alias or Shortcut for rotate around center 90 degrees in X or Y or Z axys

Hello, I would like to hit a shortcut or alias and to rotate an object around it’s center for 90 degrees. Example: hit F1 (or aliaz ‘z’) - rotate 90 around Z axys hit F2 (or aliaz ‘zz’) - rotate 90...

View Article
Browsing all 5938 articles
Browse latest View live