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

Get objects from a grasshopper component?

@siemen wrote: So I’ve been working on a python script that sets geometry into a grasshopper component using @clement 's great example here:...

View Article


Image may be NSFW.
Clik here to view.

Curve.ToArcsAndLins

@timothytai wrote: Hi, Am I not understanding the Curve.ToArcsAndLins method correctly? crv2Arcs_v1.gh (13.7 KB) 2019-03-21_10-44-15.png1916×944 111 KB The tolerance parameters don’t seem to change...

View Article


Image may be NSFW.
Clik here to view.

Extrude Cut Equivalent?

@roeylazarovits wrote: Hello, I’m new to Rhino and Grasshopper, and I’m looking for a way to “extrude cut” using Grasshopper’s scripting tools, similar to how you might extrude cut in Solidworks....

View Article

List

@fari697 wrote: Hey guys, How do i create a list of lists of points, seems simple tasks but having troubles outputing some format the other guys can then use in their workflows. This is what i have,...

View Article

Animate Rhino Viewport with Rhino Python?

@p1r4t3b0y wrote: Hi everybody, Is it possible to animate the Rhino viewport with Python in order to run, for example a simulation that you can follow in real time, instead of seeing just the outcome....

View Article


Image may be NSFW.
Clik here to view.

[python] Debugging Events

@ivelin.peychev wrote: How to debug events other than: “If it works, it works” “if it doesn’t work,… – …nothing happens” – …Rhino crashes" Posts: 10 Participants: 5 Read full topic

View Article

[Python] Centroid of Polyline RhinoCommon

@ShynnSup wrote: Hi guys, I want to select all polylines on a layer, and then get the the center point of each one to then move the camera’s target to those centroids. But I am not sure about the...

View Article

Image may be NSFW.
Clik here to view.

Noob question #003?

@ivelin.peychev wrote: Is it possible to override the Point3d constructor directly or should I override the Rhino.Geometry.Point class then somehow create my own constructor mimicking...

View Article


Image may be NSFW.
Clik here to view.

Reset value list

@ang-rose33 wrote: Hi everyone, this script intends to reset the ValueLists based on their Nicknames, it is very simple but an error has occurred : > the obj GH_ValueList (undocumented in...

View Article


Noob question #004?

@ivelin.peychev wrote: What method/property determines if the doc object of an instance of a class from the Rhino.Geometry namespace can be modified, or not? By modified I mean the object in 3d to be...

View Article

Noob question #005?

@ivelin.peychev wrote: Can Rhino.Geometry *EventArgs class be overloaded with additional methods/properties, or I have to create my own class and OnSomething event, plus event handler? This question...

View Article

Changing Text font using a script

@scvaast wrote: I am looking to create a script that will change the font of a selected list of text and then explode the text so that it can be used to engrave on a cnc mill. I am doing this so that...

View Article

Image may be NSFW.
Clik here to view.

Scripting Leader Arrow Type

@Alasdair wrote: Is it possible to change the arrow type for leaders using Rhinoscriptsyntax or rhinocommon? Here’s what I have so far. import rhinoscriptsyntax as rs import Rhino def...

View Article


Image may be NSFW.
Clik here to view.

[Python] sub object selection is not trimmed

@ivelin.peychev wrote: Hi, I was looking at this thread: Scripting sub-object selection in Python Scripting Me too, thanks… I actually remember how to do it now - the following does restrict selection...

View Article

Silhouette Class?

@ivelin.peychev wrote: What is that used for? Can I use it to extract brep’s edges? Posts: 1 Participants: 1 Read full topic

View Article


How can I _squish a brep with python?

@ivelin.peychev wrote: Not scripting the command that is… What is happening behind the scenes? Posts: 1 Participants: 1 Read full topic

View Article

[python] How to script a command that requires multiple inputs?

@ivelin.peychev wrote: Like say _-Squish. How can I pass the selected objects when rs.Command() accepts just a string? Posts: 3 Participants: 2 Read full topic

View Article


Image may be NSFW.
Clik here to view.

Unroller.PerformUnroll methods

@ivelin.peychev wrote: Why are there two PerformUnroll methods in the api? What does that mean? using one or the other based on the arguments passed or that it accepts them all. But then again, why...

View Article

Random Float Numbers in Python

@FordEarl wrote: Hello, a complete Python beginner here (like minutes ago) I would like to learn how to create a random list of 20 float values that are a mix of these float values 0.5, 0.75, 1.0,...

View Article

Image may be NSFW.
Clik here to view.

[Python] How to control text attributes with Python

@FordEarl wrote: Hello Community, I am totally new to Python but intrigued and determined to learn. I acknowledge this request for advice/help is an advanced question for a beginner but any advice on...

View Article
Browsing all 5823 articles
Browse latest View live