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

Image may be NSFW.
Clik here to view.

DisplayConduit - Capped Breps Appear "Collapsed"

If I loft 3 curves and then cap the loft, I get this strange shading issue where part of the brep appears to collapse in on itself. Not all shapes have this problem. It goes away if I scale the middle...

View Article


Struggling to export selected objects with different origins

I’m writing a script that selects all objects with a certain name, and exports the selected objects with an origin based upon a bounding box of said objects. The part where I’m struggling with is the...

View Article


Quick Stl-Export Script

Hi, I often find myself exporting a STL file for 3D printing, importing it into the slicer, discovering something that has to change in the file, re-exporting, importing and so on. To make this a bit...

View Article

How to style a command in a ScriptEditor (.rhproj) project

I’d like to be able to set the CommandStyleAttribute on commands added to a project in the ScriptEditor. Specifically, I want to make sure that one of the commands in my project is set to DoNotRepeat,...

View Article

Update grasshopper query objects or recompute - with a Rhino alias

Hi, I’m trying to create an alias that would recompute my grasshopper definition. Even better, if I would be able to just have an alias to “press” on the query button of the query model objects...

View Article


Pickle Guid objects python3

Hi all I am running into an issue pickling a custom class which contains Rhino Guid objects in Rhino 8 in combination with python 3. Below is the minimal code example (this does not contain my custom...

View Article

Image may be NSFW.
Clik here to view.

Guid error in Python 3 GH

Hello, I’m relatively new to using python 3 in Rhino 8 and I keep stumbling onto the following error code. What I do not really understand is that it refers to line 894 in the script. Is there someone...

View Article

Image may be NSFW.
Clik here to view.

Delaunay mesh in rhinocommon

Hi Using Mesh.CreateFromTessellation in rhinocommon I’m able to get a mesh similar to what the delaunay mesh component in Grasshopper produces except for some extra faces along the outer edges. I...

View Article


Can't color point clouds after applying python script

Hi, I run a short python script to split a large point cloud into two point clouds using a surface. After the large point cloud is split, i then make each individual point cloud a different color....

View Article


Image may be NSFW.
Clik here to view.

New Py2 treats empty branches in a tree differently that legacy py

When trying to copy paste a legacy python2 script to the new python2 component I found that it dealt with empty branches in a tree differently than the legacy. The empty branches are ‘None’ in the new...

View Article

Image may be NSFW.
Clik here to view.

IronPython 2.7 IDE - Number of lines not readable beyond 10k lines. Bug

Rhino8 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Issues with Python Primer for Rhino

www.rhino3d.com Rhino.Python 101 A full course on Rhino.Python this is the link to the recource I have been following along with. currently going through the document, and dipping my toes further into...

View Article

Create new floating viewport with a specific viewport resolution

Hi All, Is there a way to create a new floating viewport with specific 960x540 resolution? Trying to do it in python. thanks a lot! If possible could that option be built into -newfloatingviewport...

View Article


Scripting with SectionStyle

Hi, I’m trying to understand what can be done with Section Styles, mainly with a view to automate the update of section style’s parameters. As I understand from the RhinoCommon documentation, it is...

View Article

Image may be NSFW.
Clik here to view.

Morphy in contour

Hi, guys, I need help, does anyone have any tips for creating a script to adapt the internal curves from one contour to another automatically. I’m reading some things that talk about morphy 5 posts -...

View Article


Image may be NSFW.
Clik here to view.

Question: how can I make blocks embedded and linked again

Hi, Context I have a file with many linked and nested linked blocks. Occasionally the linked blocks refer to the same nested linked blocks as in the diagram below. For keeping versions of my models,...

View Article

Image may be NSFW.
Clik here to view.

Scale/rotate sub-element texture only

Is it possible to scale or rotate the texture of a single sub-element separately using RhinoCommon? say, I have a box with a texture can i scale the texture of only one brep face? currently it scales...

View Article


Image may be NSFW.
Clik here to view.

ScriptEditor Autocomplete fails

Hi @eirannejad, it seems that autocomplete fails on many of my scripts after a certain level: it does not happen on a new empty script, but if the script has a bit of complexity, it fails quite often....

View Article

Connecting to Excel Code doesn't work in Rhino 8

Hi, I’ve tried to open an excel file using code that worked in previous versions of Rhino and it no longer works. I’m not sure if there is something about the block of code that needs to be updated or...

View Article

Macro/script - undo in one step

Hello everyone, I have a quick question about a script / macro that I use to load standard parts from our library: ! EchoAus -_Import R:\Bibliothek\Schrauben\M8_Innensechskant\30.3dm _Enter...

View Article
Browsing all 5938 articles
Browse latest View live