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

Image may be NSFW.
Clik here to view.

Bug - MeshFromLines, Mesh.CreateFromLines

What’s wrong here? mesh_from_lines_c.gh (30.4 KB) 5 posts - 3 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

How to manage assemblies in new C# editor?

The script for the custom goal relies on the KangarrooSolver.dll file but I don’t see the option ‘Manage Assemblies’ in the new editor. @DanielPiker I tried Assembly.LoadFrom but I must be doing...

View Article


V6 polyline parameterization difference?

This is a shot in the dark to see if the hive mind can figure this out while I sleep. I’ve got a VBScript that works in V7 but not V6 (but it seemed to not be a problem back in V4? Ugh it’s old) and...

View Article

Keyboard event handling

Hello, I want to make a script that continuously redraws objects based on parameters provided via a dialog box. I currently have this function which is showing the dialog box, collecting the...

View Article

Batch File Script help

Hi Dale. Im trying to make a batch file work by drag and drop. Is there a way to include variables inside the /runscript command? For example this batch file works: “C:\Program Files\Rhino...

View Article


Image may be NSFW.
Clik here to view.

RhinoScript syntax highlighter for Notepad++ or equivalent

Is there a UDL style I could import into Notepad++ (or equivalent) to highlight syntax like Notepad++ does for python etc. Would make writing RhinoScripts a bit easier for a noob like me! Want:...

View Article

Confusion about configparser Python module

Hello, I need to both read and write settings to an INI file. This is trivial using the standard configparser module in Python. I see that there is a rs.GetSettings function but no corresponding...

View Article

Using SelBoundary to select objects from a specified layer

Hi, How can I use SelBoundary to select from a specific layer? rs.UnselectAllObjects() rs.Command(“_SelBoundary _SelectionMode=Crossing selid {} _Enter”.format(str(rftp)), False) n_items =...

View Article


V6 RhinoScript OffsetCurve problem

Hi, I’ve got another problem with a script I’m updating for rhino 6/7 (actually just 6 for now) and something isn’t working right because Rhino.OffsetCurve behaves differently than in 7 (or in 4? What...

View Article


Creating a triangular mesh from a closed crow

Hello everyone, I would like to create a special triangular mesh from any shape. I would like this mesh to be equilateral triangles of known dimensions? Has anyone ever done anything like that? Thank...

View Article

Image may be NSFW.
Clik here to view.

"newmtl" name in mtl file

I am creating obj file using the attached code snippet. But the mtl file getting created has having “newmtl diffuse_0” default name. Can anyone tell me from where it is taking this name and how I can...

View Article

Select object in highlighted Layer?

I do want to create a macro or script to select and isolate all the objects that are in selected layers, instead of Right-clicking on the layer list and pressing the Select Objects from the list of...

View Article

How to run Eto Form in parallel with Rhino?

When I initialize an Eto Form, how to make Rhino still usable when Eto Form is running? import Rhino import Eto.Drawing as drawing import Eto.Forms as forms class Dialog_Rhino(forms.Dialog[bool]): def...

View Article


Image may be NSFW.
Clik here to view.

DataInput and DataOutput in python

Hello gentlemen. Does anyone have experience with creating DataInput and DataOutput with python? I have a problem writing in the command where to save the file and which data to put in the file. Thank...

View Article

Image may be NSFW.
Clik here to view.

GH Python - very basic query

Hello everyone, I am trying to learn Python and use it in GH. This is my very first attempt, so I beg your pardon beforehand. Thanks so much I am trying to check a list of strings, if they contain...

View Article


Image may be NSFW.
Clik here to view.

Python whitespace confusion

Python expects a whitespace before and after an arithmetic operator but complains about whitespace around = Is this a general python rule or something which has been decided by Rhino developers? 8...

View Article

Grasshopper:How do I close the status bar of my plugin

How do I close the status bar of my plugin 1 post - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

Problem of baking

Hello everyone, I am a newbie to gh with python. I am currently learning from a youtube and encountered a problem in Baking even I have followed the video. Are there any kind people share your...

View Article

Using Shrink Wrap with Python

Hi, I’m fairly new to Python but I’m trying to put something together that will cycle through layers/objects in a rhino project and run the shrink wrap function, As far as I can wrap function is being...

View Article

Image may be NSFW.
Clik here to view.

Uncheck '.BAK' creation via Rhinoscript

When saving to a synched folder form the cloud, the ‘.bak’ file that gets created holds onto the checkout controls rather than the saved file. To get around this, we are making our standard to...

View Article
Browsing all 4148 articles
Browse latest View live