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

How to get a RhinoObject not in the document?

@emilio wrote: Hi Trying to use this method: https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_DocObjects_Tables_ObjectTable_Replace.htm I see that the second argument ( RhinoObject ) must...

View Article


Differences between python editor and python commands?

@tom.norris23 wrote: Hi all, Using Rhino 5: I have a script which works fine in the editor as a script but as soon I run it as a command it stops behaving as expected. The result of the script is the...

View Article


Functionality of rs.coerceX Methods

@annasong wrote: Hi, I can’t seem to find clear documentation for the rhinoscriptsyntax’s (rs for short) coerce methods in the rs method documentation website:...

View Article

Scripting is not duplicating surface border

@direyes_11 wrote: Hello everyone, This are some lines of the script I am developing right now. The problem is that after the script ends, it is not duplicating the surface border. however it does not...

View Article

Image may be NSFW.
Clik here to view.

Not being able to print unicode characters

@ivelin.peychev wrote: Hi, Am I doing something wrong? Why am I not being able to print unicode character for “squared” Posts: 1 Participants: 1 Read full topic

View Article


GHPython mesh deconstruction

@Ben4 wrote: Hi, I’m using ghpython to extract the faces of a mesh, where each face becomes its own mesh. I found a component that did this in c#, but wanted to see if I could write the same thing in...

View Article

System.Guid object vs Rhino.DocObjects.ObjRef

@onrender wrote: Hi there, I have a question regarding the difference between GetObject and GetObjects (Get multiple objects) methods. When I use GetObject Rhino returns the following single item;...

View Article

Error in `rhinoscriptsyntax-structured-docstring.json`

@kitjmv wrote: Hello ! For my actual project i use rhinoscriptsyntax-structured-docstring.json for auto generate differents tests I have remark an error, there are some arguments that are omitted in...

View Article


Image may be NSFW.
Clik here to view.

GH Python in Rhino 6 - Vicarious Argument

@agamas wrote: Hello guys, I recently upgraded to Rhino 6. Something that i noticed when working with ghpython is that I’m getting some warnings refering to ‘vicarious arguments’ that I didn’t get in...

View Article


Rhino.Collections.Point3dList vs. python list of Point3d objects

@Helvetosaur wrote: Just a quick question for my general knowledge base… Is there a speed (or other) advantage to be gained by working with a Point3dList instead of a ‘normal’ list of Point3d’s with...

View Article

Getting X coordinates from a Point3dList() - confusion

@Helvetosaur wrote: I’m confused… Can someone tell me what is my incorrect assumption here? According to this, I should be able to access the X coordinates of my Point3dList()...

View Article

Open cmd window and run python file with options ( getting Windows error)

@raniat123 wrote: I was testing a simple command that looks like this Python 2.py 1 2 here is what I tried: from subprocess import call file = r"C:\Users\RANIA\Desktop\2.py" x = 1 y = 2...

View Article

What module to handle in python 2d index data matrix?

@flokart wrote: Hi all, is there a module to handle 2d index matrix (exel) for data in a easy way ? Like pandas or numpy. Or can i install these modules in rhino python ? Thanks for tips Posts: 1...

View Article


Couple of cone-y questions

@Helvetosaur wrote: Just in general, why are scripted/RhinoCommon cones created “upside-down”? I can understand that they are created from a revolve of a line passing through the base plane origin,...

View Article

Automation with GH and Python

@Karl_Singline wrote: Hello everyone, I’m doing, what I thought, would be a simple automation script for a GH setup. It all runs fine up until the final two lines?! My ‘test’ object is baked at the...

View Article


Reordering a tree of points according to another order

@Federico_Giacomarra wrote: Hi, I’m trying to reorder the points in a tree according to another order (always coming with the same tree structure). Basically I calculate the relative position of the...

View Article

__init__() takes exactly 2 arguments (3 given)

@mimosapudica wrote: Hi, I am trying to create a 2d array that access points with two value [i][j] But I am getting this error message: init() takes exactly 2 arguments (3 given) could you give me a...

View Article


Image may be NSFW.
Clik here to view.

Evaluate each successive point y value and cull if greater than previous?

@ShynnSup wrote: Hi everyone, I am a beginner to python and coding in general, and I was wondering how one could evaluate the y value of a point comparing it to its previous on the list and if greater...

View Article

Image may be NSFW.
Clik here to view.

How to duplicate a Layout (PageView in RhinoCommon)?

@Goswin wrote: How can I duplicate a Layout (PageView in RhinoCommon) via Python or Rhinocommon? I am looking for a command that is similar to this UI function: I did not find anything here:...

View Article

Selection options

@NAVDRAFT wrote: Hello everybody, I’m recently interested in rhinocommon/ python for making my life easier with rhino in my everyday workflow and even if might be a simple solving for most...

View Article
Browsing all 5786 articles
Browse latest View live