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

Image may be NSFW.
Clik here to view.

Python_How to solve this problem? expected Point3d, got list

Hello I’m trying to make a triangle pattern from points grid. But i have a problem like the picture. i need your help~ Please let me know what is the problem and how to solve this problem? python...

View Article


Attribute User Text as Python dictionary

Hello! I am trying to retrieve all objects from the rhino document in order to get their Attribute User Text as a Python dictionary. No luck so far… What I have been trying is this: for rObj in...

View Article


Image may be NSFW.
Clik here to view.

RhinoScript from Guidebook doesn't work

The code from the guidebook keeps asking about my ‘favourite things’ without any grande finale Could you please check if it forks for you? I work with Rhino 4 Sub MyFavouriteThings() Dim strPrompt,...

View Article

GearGen script update

Hi guys, If anyone is still using this old script for gears, there is now a small update to fix issues related to when a circle has been edited via boxEdit (thanks to @Ian for pointing this out)....

View Article

Import tensorflow into ghpythin

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article


2D Bin Packing in Rhino Python

Hi Everyone, A while ago, @Antonio_Cersosimo posted some great links about bin packing implementations. I found the 2D-Bin-Pack-Bionary-Search implementation to be interesting as while it isn’t...

View Article

List or Tuples

I am getting the point name and its co ordinates of a 3D point in my workspace then want to sort by either of the fields. What would you recommend ? a list or tuples if so is there an easy way of...

View Article

Image may be NSFW.
Clik here to view.

Random shuffle?

Hello Why random shuffle always give None result? image1100×672 58.5 KB 4 posts - 3 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

Which is more efficient in performance for manipulating breps, diplayed...

For manipulating breps (e.g., scaling) which is more efficient in performance (memory consumption/processing time), diplayed objects or non-displayed objects? A diplayed object: ID=rs.AddSrfPtGrid()...

View Article


GH sc.sticky change event / call python code components from another python...

Hello, I would like to load and save a configuration from and to a file in Grasshopper using python, which works, apart from the right save function trigger. Once loaded, the configuration is saved in...

View Article

Image may be NSFW.
Clik here to view.

Set value of python component output / ghenv.Component.Params.Output[1].SetValue

Hello! First of all, thanks for your help! How can I set the value of an output without explicitly using a = 5. I think it can be done using ghenv.Component.Params.Output[1].SetValue(), but I don’t...

View Article

Image may be NSFW.
Clik here to view.

Apply custom render mesh parmeters to an object via scripting?

We can get the different types of meshes attached to a Rhino object via RhinoCommon with RhinoObject.GetMeshes() and get the parameters used via RhinoObject.GetRenderMeshParameters(), but for setting...

View Article

Rhino 6: "No module named GhPython.Assemblies" after hit "Reset Script...

Hello, The title here almost says it all. Using the Rhino 6 Evaluation version and developing some python scripts, I happen to get this error message each time I hit the “Reset Script Engine” button....

View Article


Move grasshopper component from python component using Metahopper

I’m sorry for asking quite much recently. I’d like to move a value list before adding it to the Grasshopper document using python. This is what I tried already: # trying to modify the bounds...

View Article

Image may be NSFW.
Clik here to view.

Wish: rs.getrealbox() accept Space as Enter

Hi guys, (is this for you @dale?) it would be great if rs.GetRealBox() could accept Space as Enter. Is that a big rewrite? I have tools where I use the real box since it is much more “in you face”...

View Article


SubDSweep and SubDLoft and...in RhinoCommon

(subdSweep and subdLoft and Multipipe… ) Is this api now in common,? if not, when will these be added? Given the great features of Subd … I think users desperately need these commands. @dale 1 post -...

View Article

Image may be NSFW.
Clik here to view.

"Item;List;Tree" Access in GhPython

Hello Is there a way to change between Item;List;Tree … Access from GhPython? image609×585 31.2 KB 6 posts - 3 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

Unroll Curves in one direction only

Hello All, I m looking a way to automate the process of unrolling curves in one direction. I give below an example and i have also attached the 3dm file.unroll_crv_1d.3dm (60.9 KB) The original curves...

View Article

Question on Rhino.Geometry.GeometryBase.Duplicate()

Can’t seem to make it work to duplicate a Rhino.Geometry.Box object… What am I doing wrong? I tried new_box=Rhino.Geometry.GeometryBase.Duplicate(old_box) >>> message: "expected GeometryBase,...

View Article

for filtering

Where can I find the type of a GH python object / <type ‘ZuiPythonComponent’>? I want to filter for these, but can not find the type like for the gh_group as seen below. It’s not part...

View Article
Browsing all 5743 articles
Browse latest View live