Quantcast
Browsing all 5800 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Why Python Script component is slow?

I have noticed Python component in comparison to original GH components with the same functionality works dramatically slow. As you can see on the figure it is 6 times slower than the original, ow!...

View Article


Node-In-Code Issue on mac

When running this code to try and use Node-In-Code on rhino 7 mac: import rhinoscriptsyntax as rs import ghpythonlib.components as ghcomp It works the first time the script is run after freshly...

View Article


Random function

I have a question,how we have a function random with command :up-down ? i want te crear a rectangular surface with a division into 4 rectangles and one rectangle go up-down . Tnaks 5 posts - 2...

View Article

Split surface

Which function of the RhinoCommon or RhinoScriptSyntax should use to implement splitting a surface by the curve which lays on the surface (the same functionality as the Split tool in Rhino, where the...

View Article

Image may be NSFW.
Clik here to view.

Wish: More UserData like SetUserText(): SetUserBool() and SetUserList()

@dale Would it be possible to add more user data types ala rs.setUserText()? I use rs.SetUserText() to add configurable values to the objects we make. (And then run an update script that reads these...

View Article


Image may be NSFW.
Clik here to view.

GHPython OnClicked

Hi All, I’m new GH. I’m trying to create a component by python. And take value from OnClicked. So I set value k = 1 and output by a. But it’s warning “1. Solution exception:global name ‘k’ is not...

View Article

How Python scripts can be added to historical constructs

I’ve written a lot of small scripts in my work with py, but I don’t add history to them. There’s a simple example of adding history to a script plugin in c # on the website, but I don’t understand c #...

View Article

Image may be NSFW.
Clik here to view.

Python Script_Collecting ClassData

Hi! I am still relatively new to python. We had just learned about classes and agenst and I have created multiple curves from agents and putting that into a list in a class, and then attempted to take...

View Article


Image may be NSFW.
Clik here to view.

Capture Viewport to Bitmap image resolution issue

Hello, I have a specific task of exporting an image of the viewport to a PNG image. Currently I can export the image with this code (also appears in the link), AS LONG as the viewport extents are...

View Article


How do I script pressing the return button in Python for Rhino please

Hi, can someone please tell me how to script pressing the return key to accept a setting.I can get commands to work with my python scripts but it always pauses if there are options to accept. Since I...

View Article

Image may be NSFW.
Clik here to view.

Extract specific html (with a flex container) using ironpython in GH

Hi, I am trying to web scrape data using IronPython in Grasshopper from a specific widget on this link: https://vemcount.app/embed/widget/uOCRuLPangWo5fT?locale=en The code I am using is as follows...

View Article

Add new rectangle And select

Rhino.AddPolyline array(apts(0), apts(1), apts(2), apts(3), apts(0)) How to select and Change color. Thanks 3 posts - 2 participants Read full topic

View Article

Installing a new Python module in Rhino for Mac version

How to install a new Python module in Rhino for Mac version? There is a thread for Windows but Mac apparently has no such options. 1 post - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

《RhinoPython 101》-Why can't the curve endpoints be displayed?

import rhinoscriptsyntax as rs def main(): curve_id = rs.GetObject("Select a curve to sample", 4, True, True) if not curve_id: return rs.EnableRedraw(False) t = 0 while t <= 1.0:...

View Article

Add material with python script

Hello, I have modified an example found online to add a new PBR material to the scene. If I run this script again, it creates a new material labled …(1), …(2), etc. How can I keep track of the current...

View Article


Problem with unnamed sticky command arguments in scripting

How does one set via rhinoscript command line arguments that don’t have a name but are sticky toggles? May not be the best example, but, say, I want to create a helix of diamater of 1:...

View Article

Image may be NSFW.
Clik here to view.

Select Objects by Layer rs.ObjectsByLayer

Hello, I’m trying to make a very small script that selects objects based on their layer name in python. import rhinoscriptsyntax as rs if run is True: rs.ObjectsByLayer(layer_name, select=False) x =...

View Article


Looping to make serial points

Hello, I have this simple definition to move a point. However, instead of giving me 100 points spread out at 1 increment, it gave me 100 points in 1 location (p3) Does anyone know how to fix this?...

View Article

Image may be NSFW.
Clik here to view.

Retrieve layer name list from file with different language than English

Hello, I’ve retrieved all the layer names in grasshopper, but some layers in my rhino file have named in different language, specifically Korean texts. Rhino 7 is displaying it without an issue...

View Article

Is there a way to call 3D convex hull from C# code?

Basically I want to get the mesh from a set of points to analyse volume and sections. Any ideas how to call this or if there is component that I can reference? 5 posts - 3 participants Read full topic

View Article
Browsing all 5800 articles
Browse latest View live