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

Rhino 8 Distance() method

Is the Distance() method in the rhinoscriptsyntax library broken in rhino 8? This simple code gives me an error message in line 6 “Point3d object has no attribute Lengh”. It works fine in rhino 7....

View Article


Center of Buoyancy calculation error!

Hi there! I noticed differences between the calculation the Center of Buoyancy. Once for the clipped - underwater body and another time for the whole body in both cases for the same elevation of 10...

View Article


How to find if an object is a Lands Design object?

Hi, How can I find all objects that are lands generated? I am making some tools where the lands objects (like row etc) is messing up. – In another script I use rs.ObjectDescription(obj) to see if it...

View Article

Issue: rs.MatchObjectAttributes() makes objects dissapear

Hi there, I use rs.MatchObjectAttributes() to clone the attributes (e.g. objectlayer, usertexts, etc) from objects, nested inside a block to their copies. (I use this mechanism as a workaround for...

View Article

Image may be NSFW.
Clik here to view.

C# Component

Hie, I am a Noob with c# component in grashopper. I try to copy a code. Exist a way to change the public class that c# component offer? Regards. 3 posts - 2 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

Rhino 8 script editor

Hi, In the old “Rhino Python Editor,” the function descriptions automatically appear when you open the parentheses, providing very quick and efficient help. In Rhino 8’s Script Editor, this...

View Article

How to select a subd vertex with python

Hi, how can I select a subd vertex with python in rhino8? import Rhino import rhinoscriptsyntax as rs def edit_subd_verts(): filter = Rhino.DocObjects.ObjectType.SubD rc, objref =...

View Article

view.ActiveViewport.PopViewProjection() no effect

@dale I am trying to store and restore the current view. I based my attempt on Select object by WindowBox - #14 by dale but do not get it to work. Any hints would be greatly appreciated. Thank you -...

View Article


rs.GetReal : How to create a list of predefined values?

GetReal has only one default number value. Can I get it to have a list of predefined values to click on? like [100 , 200 , 300] Thank you! 2 posts - 2 participants Read full topic

View Article


Error with loading pandas in rhino 8

Hello everyone, I have a problem with loading pandas in grasshopper in rhino 8. I got the error saying: partially initialized module ‘pandas’ has no attribute ‘_pandas_datetime_CAPI’ (most likely due...

View Article

What version of Python in implemented in Rhino 8?

Hi. I’ve got (simple?) question? Whar version of Python are we using “Python 3 Script”? Is it 3.7 (or previous) or 3.8 (or later)? 3 posts - 3 participants Read full topic

View Article

Editable python install

@eirannejad We get the error when we try to install the python package locally. What could be the issue? The importlib_metadata is in rhino python for sure. (3dec)...

View Article

rs.MeshClosestPoint

when i use the example code of MeshClosestPoitn : #! python 3 import rhinoscriptsyntax as rs obj = rs.GetObject("Select mesh", rs.filter.mesh) point = rs.GetPoint("Pick test point") intersect =...

View Article


rs.MeshClosestPoint doesn't work

when i use the example code of MeshClosestPoitn : #! python 3 import rhinoscriptsyntax as rs obj = rs.GetObject("Select mesh", rs.filter.mesh) point = rs.GetPoint("Pick test point") intersect =...

View Article

No module named 'Rhino.RhinoDoc' in python 3

When I try to do: import Rhino.RhinoDoc it works in the python 2 editor, but in the python 3 editor, I got the following error ModuleNotFoundError: No module named 'Rhino.RhinoDoc' 2 posts - 2...

View Article


Get optional output in Python 3

In python 2, if I want to get the optional output, I could use the strongbox in the clr module like: Idcs = clr.StrongBox[Array[int]]() dist = rg.Intersect.Intersection.MeshRay(mesh, ray, Idcs) But in...

View Article

Image may be NSFW.
Clik here to view.

Rhino 8 - Script Editor - Help on functions?

Greetings, Any chance of implementing the Help available in Rhino Python Editor on the new Script Editor? It is very useful, especially when it pops immediately when the function is defined, thank...

View Article


Image may be NSFW.
Clik here to view.

HiddenLineDrawing.Compute with Blocks

@rajaa I am working along the below example to implement a custom version of HiddenLineDrawing.Compute. Rhino Bug: HiddenLineDrawing.Compute Rhino Developer It looks as if all your objects are behind...

View Article

Rhino8 - Layer adding with python script (RESOLVED)

Hi all, Quite some time ago I wrote a RhinoPython script to add a block of layers in Rhino5. It creates a series of new layers with succeeding numbers following a prefix based on a selected sub layer,...

View Article

Help: Rhino.Geometry.HiddenLineDrawing.Compute viewport question

Hi @stevebaer or @GregArden I am working on a script to automate some make2d stuff of blocks and I don’t understand how viewports work in this regard. In ordinary Make2D we can choose Cplane and this...

View Article
Browsing all 5938 articles
Browse latest View live