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

Setting random materials

@Bara_Sabsabi wrote: Hi is there a way to assign random V-ray basic material to each layer in the file ?? i need it so when i export to 3ds max i will just change the material setting. thank you…...

View Article


Image may be NSFW.
Clik here to view.

RhinoPython editor not opening; changed Paths available in Tools -> Options,...

@Bianchi wrote: I was testing out which paths we could not include in installing IronPython in a given Windows PC (EDIT: I had another IronPython version installed externally in Progam Files (x86)),...

View Article


Export multiple point minimum distances from surface

@Dave_Perry wrote: Have a surface and multiple points near the surface. All points have a unique name. Need a simple script to export (.csv, .txt, .xls, etc.) the point to surface distance data. At...

View Article

How to create contour of a surface from draft angle of point its location is...

@GHumera wrote: Option Explicit 'Surfcae curvature analysis at a point Sub SurfaceCurvature Const rhObjectSurface = 8 Dim strObject, arrPoint, arrParam, arrData, pt strObject = Rhino.GetObject("Select...

View Article

Trying to create a sphere on a layer based off of a specific point (on the...

@Christopher_Gornall wrote: trying to create a sphere on a layer based off of the layer of a specific point then move it to another layer based of the layer name “audio evaluation” Posts: 1...

View Article


Automate Block Creation

@CADProjects wrote: Hi Guys I would like a script that automates the creation of blocks. I have a model with hundreds of 3D solids contained within. Each solid has its own unique name applied to it in...

View Article

Trying to find object layer name to use with csv. also changing object layer

@Christopher_Gornall wrote: Hello I am trying to get the layer name for a file by searching for it. in def Ballast_Point after if rc I define Brand as ‘phillips’ I need to define brand by searching...

View Article

Trying to create a box 2x4x2 2 units below an existing point

@Christopher_Gornall wrote: i am trying to find objects in a layer with “Light” in the name i then need to create points at the center of the objects(boxes) and create coresponding boxes 2x4x2 exactly...

View Article


Selecting all spheres in a project

@Christopher_Gornall wrote: hello, I am trying to select all the spheres in a project how would i do that? Posts: 4 Participants: 2 Read full topic

View Article


Image may be NSFW.
Clik here to view.

How to install mpmath, enum and future into Rhino IronPython package directly?

@Bianchi wrote: Based on what I’ve read, it’s possible to install other packages onto IronPython using pip and ipy.exe, using the Command Prompt with Administrator Access. However, these (pip and...

View Article

Image may be NSFW.
Clik here to view.

Creating dialogs in Python with Eto

@dale wrote: HI All, We’ve been working on a help guide to get Python scripters started on creating dialog with Eto in Rhino 6. If this topic is interesting to you, please spend the time to review and...

View Article

LinearDimension in Rhino Common bug in WIP?

@Yuheng_Ouyang wrote: Hi, I’m using Rhino WIP 6.0.17206.9241, 07/25/2017. I found the LinearDimension in RhinoCommon doesn’t work in this version. Which caused all the related functions in rhino...

View Article

Rhinocommon Dimensions WORKFLOW?

@NikWillmore wrote: I’m on the Grasshopper forum, uber confused about how to make real Rhino dimensions at some angle other than horizontal. There are several posts out there about dimensions being...

View Article


How to run a python script with options?

@Bogdan_Chipara wrote: For example: In a macro I can run: “line b”, and i will run the line function with the both sides option, in one step. But if I have a python script and I execute it using an...

View Article

Hatch pattern list

@onrender wrote: Hello is there way to collect all hatch patterns in a drop down menu in Python and assign one pattern to an object and assign a pattern in a table row on the UI ? Posts: 3...

View Article


How to copy a Vector3d in Python?

@Eugen wrote: Hello! Is there a simpler way to copy a Vector3D than like so? There’s no Copy() or Set() method in Vector3D. import Rhino.Geometry as rg va = rg.Vector3d(1,2,3) vb = rg.Vector3d(0,0,0)...

View Article

User-defined variables

@Nguy_n_Qui_Lam wrote: Hello everyone I am working with Rhinoscript. However, I don’t know whether Rhinoscript supports User-defined variables or not. e.g Public Structure student Public givenName As...

View Article


Image may be NSFW.
Clik here to view.

Reset Object Properties

@jessegould wrote: Hi all, Wondering if anyone has a nifty macro/script that can reset object properties so that all go back to being “by layer” Often im importing a number of geometrys from external...

View Article

Store a value in the Rhino file

@Holo wrote: Hi, I need to make a script that stores a value in the Rhino files, what would be the best way to do so? And I would need to check IF that value is present. I would like it to act like a...

View Article

Get render color at point on surface

@devin_jernigan wrote: Hi, I’d like to know if there is a way to evaluate a point on a surface for the color that the Rhino viewport is displaying. Basically, I’d like to find all points on a surface...

View Article
Browsing all 5749 articles
Browse latest View live