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

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? 14...

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

RhinoCommon, recover image from PictureFrame

Hello, I forced an image into a geometry with this code: System.Drawing.Rectangle rect = new Rectangle(0, 0, 1280, 1024); Point2d point = new Point2d(0, 0); Plane pln = new Plane(new Point3d(0, 0,...

View Article


Image may be NSFW.
Clik here to view.

Importing and using a custom grasshopper component in rhino.python

Hi, I have built a custom grasshopper component and saved it as a user object (.ghuser). Now I want to import it and use it in Rhino.Python script. Can someone guide me on how to do this? I have tried...

View Article

Copy object creating a new layer with the same properties with python?

Hello, How are you ? I would like to know we could copy an object to a duplicate layer with same properties of the first one ! Do you know if its possible with a python script ? Thank you so much Have...

View Article


Access to path denied

Hello everyone, so I was testing out a couple of Python scripts in Rhino7 on my Mac and I was promted this messsage at some point: Exception occured Message: Access to the path is denied....

View Article

BrepClosestPoint

Hi Can anyone get the Tolerance to work in BrepClosestPoint it doesn’t seem to make any difference to the point brep relationship and any outcome. Roger 5 posts - 2 participants Read full topic

View Article

Prefix all block names

Hello all, I’d like to add a prefix to all block names in a file, either with custom string or the file name. Could some one help give me some pointers in how to do that in python? Many thanks 3 posts...

View Article
Browsing all 5938 articles
Browse latest View live