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

Access image data from within GhPython

@lawrenceyy wrote: Is there a way to open an image in GhPython to get all of its pixel data (like RGB values)? Ideally, I would be importing hundreds of images sequentially and processing them (which...

View Article


Creating curve from vba

@David_Arthurs wrote: I have an excel spreadsheet which I am trying to create wireframe using VBA. Lines and arcs I have successfully done, as well as reading the ordinates of a curve into the...

View Article


Command _section in python

@mera89 wrote: Hi guys, I would like to get sections of a mesh which I can easily do in Rhino by using:Curve-> Curve from Object -> Section or simply the command _SectionHowever, I cannot find...

View Article

Get point in pointcloud by index

@lawrenceyy wrote: I've been using rhino.geometry.pointcloud to do closest point calculations, but closestpoint() only returns an index. How do I extract a pointcloud point by index? I'm trying to get...

View Article

Matrix creation in Rhinoscript

@Alibek_Faiznur wrote: Hello everybody, I am a new user of Rhinoscript. Currently, I am trying to write a script which will be used in my Diploma Project. But, I face too many problems doing it. That...

View Article


Image may be NSFW.
Clik here to view.

Analysing objects for sizes

@agmckenna wrote: Hi all, I'm hoping for some help. I've had some long-term scripts that I need to update for extra functionaility, but it means taking a different approach. See the attached image,...

View Article

Reading data from a linked block file

@JimCarruthers wrote: What would be the best way to store arbitrary data(normally with something like UserText) so that I can read it from a file after it's been inserted/updated as a block? I can...

View Article

Image may be NSFW.
Clik here to view.

Selected control points by clicking the start and end points to Flatten on...

@robinyss wrote: @dale Hi, I often need to do a repetitive work. Select the desired control point (any number) to flatten on the line through the start and end point, each time I need to draw a line...

View Article


Convert Volume to Carats

@Aaron_Clark wrote: Hey, I'm hoping someone can help me, I'm constantly trying to figure out how to convert the volume of a gem into a gram weight. Would this be a quick thing for me to script in...

View Article


Image may be NSFW.
Clik here to view.

Icosahedron, how to generate?

@Holo wrote: Anybody know how I can generate a complex icosahedron? I am working on a simple mesh-sphere shrinker, and it works ok, but the "poles" of a normal sphere adds unnecessary complexity in...

View Article

Image may be NSFW.
Clik here to view.

Layername on Printpage

@horst wrote: Hi,I wanted to know if it is possible to print the layername automaticly. For my issues it would be sufficient to see it like X in the attached image. Regards Captura.PNG1573x918 129 KB...

View Article

Anyway to edit the control point directly?

@ayoshi wrote: Hi Guys!I'm trying to edit the control point of NURBS and T-spline directly by script.For example, changing n th control point to a specific coordinate i want.Is there any way to do it?...

View Article

How to select by Window with rs.GetObjects(...)?

@RIL wrote: Hi all,I can select Control Points one by one with mouse clicks (responding to rs.GetObjects), no problem, but is it possible to also select using (mouse) "window"? // Rolf Posts: 6...

View Article


How to use NamedView with shortcut / no side panel?

@schultzeworks wrote: I am developing a tutorial where I want to switch to a specific NamedView, but not use the sidebar. I am looking for a command line or shortcut key that I could use 'invisibly'...

View Article

Image may be NSFW.
Clik here to view.

SetPtMulti (Multi version of SetPt)

@RIL wrote: OK, so I made my first PythonScript attempting to extend Rhino's std SetPt command. The idea is to be able to set multiple points at once using a another object (Curve or Surface) as a...

View Article


Image may be NSFW.
Clik here to view.

Finding Direction / Orientation for Curves & Surfaces

@RIL wrote: Hi all,Q1: How do I in simplest thinkable manner compare the direction of a curve and a nearby surface using PythonScript? Q2: And how to swap directions for Surfaces? For curves I can use...

View Article

Image may be NSFW.
Clik here to view.

How to set and get user properties like visualarq and rhinobim

@zhangyejun wrote: anyone can give a python example or some advise to set and get user properties like visualarq and rhinobim...I have tried rs.GetUserText or a jsonstring in rs.objectname with...

View Article


Override overloaded method

@emilio wrote: Hi all After a post on it.discourse about making a script play a sound, I tried to script this mark-dot-net.blogspot.it Playback of Sine Wave in NAudio In this post I will demonstrate...

View Article

Object selection according to a user-defined sequence?

@Gerry1 wrote: Hi. I'm not all that conversant with Python, so you'll have to forgive me if this has a really obvious answer.What I'm trying to achieve is this: I want people to be able to drop a...

View Article

Create Windows Form

@Crash wrote: Hi, Someone know how i can create Windows Form in Rhinoscript? Posts: 3 Participants: 3 Read full topic

View Article
Browsing all 5788 articles
Browse latest View live