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

Image may be NSFW.
Clik here to view.

(Number Of Face And Creased Edge) doesn't Cahnge?

is there way to to Meake MeshFromSubD And the results SuBDFromMesh the Topology of First SubD SubdfromMesh.gh (12.7 KB) (Number Of Face And Creased Edge,…SmoothEdge) doesn’t Cahnge? in this example...

View Article


Search for text fields only containing 2 decimals places

Hi All, I am trying to find a way to search an entire model containing approx. 100,000 Text Fields and highlight the location of where the Text Fields only containing 2 decimals places occur. Does any...

View Article


Image may be NSFW.
Clik here to view.

Modify material names in RhinoScript

I used “Rhino.MaterialName” method in RhinoScript to modify the material names. Those changes shows up in layer panel, but not in material editor. And when I save and reopen the file. All changes are...

View Article

Image may be NSFW.
Clik here to view.

Issue creating RHI Python installer in rhino 7

Hi, I’d like to create a new installer for my Rhino.Python commands, For now i have 2 commands that work properly inside Rhino 7. I created the __plugin__.py where I put the 3 lines described here....

View Article

Create OrdinateDimension by RhinoCommon

Dear all, I am trying to create an ordinate dimension by scripting. Since ordinate dimensions are not available in in the rhinoscriptsyntax I want to solve this problem by rhino common (I should say...

View Article


Image may be NSFW.
Clik here to view.

Mesh Extrusion Bug?scr

Hi, When extruding curve to mesh using Rhinocommon(Rhino.Geometry.Mesh.CreateFromCurveExtrusion), it adds one unit on both top and bottom. Please see the post below. Mesh Extrusion not working as...

View Article

Create curve in open3d using json data in python

Hi I am stuck in create a curve in open3d using a json data…any one guide me how to create curve in open3d… Thank you 1 post - 1 participant Read full topic

View Article

About JoinArrays in RhinoScript

Is it using ReDim preserve behind the scenes ? … or is it using some more efficient mechanism ? 1 post - 1 participant Read full topic

View Article


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


How to output the solution solve time as a value shown in a panel

I have been trying to figure this out for days but have had no luck. I have a foot mesh that I input, run through my script, and then output a personalised shoe. I use the animate button on a slider...

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
Browsing all 4171 articles
Browse latest View live


Latest Images