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

Image may be NSFW.
Clik here to view.

Python 3 numpy loading error

Hello, I am trying to import a python3 library from my Anaconda environment. I develped some code in January that successfully ran with the recommended import procedure: #! python3 # env:...

View Article


Help needed: Eto GridItem does not have attribute 'Tag'

Hi There, I am trying to migrate my python scripts from py2 to py3. In my old python2 script I was able to capture an .Expanded event on an Eto.Gridview. In Rh8 python 3 I, get an AttributeError on...

View Article


"live" Z coordinate of block as text

Hello! I am trying to make a “live” elevation block that reflects the Z coordinate of the block insert point. I tried with the text field inside the block but the text is static because it references...

View Article

Enhancement request - rs.XformScale optional argument "Plane"

Currently rs.XformScale only allows scaling in the world coordinate system. There is a RhinoCommon transform method that allows scaling based on an arbitrary plane....

View Article

Number of Ngons vs mesh faces conflict

I wrote a script back in 2021 that converts Breps / polysurfaces into ascii data. This has now ceased to function. The script simply takes a brep/polysurface, checks if the faces are planar, meshes it...

View Article


Creating a custom command with python SelDimLess

Hi, I am new to Python. I am trying to see if I can come up with a script for a command that selects any Dimensions that are less than a certain value (layout unit). I am not sure what went wrong here...

View Article

Rhino Python - Extract multi SubSurf and delete the originals

Hello everyone, I’ve been looking for a long time, but I can’t find the solution. I really hope you can help me. I want to delete some subsurfaces from a polysurface. But I want to be able to make a...

View Article

Image may be NSFW.
Clik here to view.

Script C# boundary surface

Hello, I’m trying to create a surface from a given closed curve in the GH C# component. I used Brep.CreatePlanerBreps method but it gives me a rectangular untrimmed surface rather than the surface...

View Article


RunPythonScript first call is slow

_RunPythonScript takes up to 20 seconds to react on first call. This is when the PC was rebooted, or Rhino slept overnight. After the first call the reaction time is normal. The irritating thing is on...

View Article


Image may be NSFW.
Clik here to view.

Different result from print

Switch displaymode next/prev. by key Rhino for Windows Hi Charles - here is a thing from my pile that you can try, along the same lines as Mitch suggests - set the modes to cycle with one script and...

View Article

Image may be NSFW.
Clik here to view.

Eto realtime output?

I want to use the scroll wheel to iterate through a list of objects in Grasshopper. I’m currently doing this with a text dot in Rhino. Once it is selected, I can change the height input by clicking...

View Article

User interface - DialogBox Document User Text Key/Value

Hello! Is there rhinoscriptsyntax command accessible by phyton that can initiate DialogBox for key/value -adding new keys and values or changing existing ones? Thanks! Igor 3 posts - 2 participants...

View Article

Rhino Python Editor Question

Slowly picking up RhinoPython, like again…Really appreciate for the help! it is a basic question while trying to read the McNeel tutorial, about the “Conditional Evaluation - if”: import...

View Article


Fin multiple curves simultaneously

Hello, I am trying to fin multiple curves on a surface with python script. I have set up the code block for getting the curves and checking the direction of fin, etc. But, I am missing the function in...

View Article

Image may be NSFW.
Clik here to view.

Script problem - it worked two days ago before updating Rhino

How to create a material in grasshopper from an image Grasshopper How to create a material in Grasshopper with an image, also I need to adjust mapping scaling, rotation [image] I’ve been using the...

View Article


Cannot create instances of RevSurface no public constructors

import Rhino.Geometry as rg import math line = rg.Line(1,0,0, 1,0,1) crv = rg.LineCurve(line) axis = rg.Line(0,0,0, 0,0,1) rg.RevSurface(crv, axis, 0.0, math.pi*2) output is Error: Runtime error...

View Article

Image may be NSFW.
Clik here to view.

Brep.CreateFromRevSurface returns a Surface

Why does the Brep.CreateFromRevSurface method returns a Surface object from python component? import rhinoscriptsyntax as rs import Rhino.Geometry as rg import math HT = 8 ext_param =...

View Article


Rhino 8 HiddenLineDrawing - Issue with OccludingSectionOption

Hello Everybody, maybe @rajaa ? I’m trying to get a custom version of Make2D running via HiddenLineDrawing and I managed to get out visible lines, even cut by a plane. Already pretty nice! Now I want...

View Article

Image may be NSFW.
Clik here to view.

Ghpythonlib.components throws error

Hi I have an issue with calling gh components from python script. The code below throws this error: Am I doing this wrong or is this a bug? 5 posts - 3 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Unexpected Sweep1 Result

Hello, Community I’m trying to make a Custom GH Plugin using C#. I needed to use the CreateFromSweep method but in the end, I got unexpected Geometry(see the attached pics). I have tried every...

View Article
Browsing all 4120 articles
Browse latest View live