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

RhinoPython ClosedCurve returned Guid is same as input Guid

@raul wrote: g = rs.GetObject("ClosedCurve") closed_again = rs.CloseCurve(g) print(closed_again, g) # are same When passing closed curve into rs.ClosedCurve() returns same GUID. Wouldn't it be more...

View Article


layer.FullPath returns differing results

@5chmidt wrote: When using layer.FullPath on the DocObject layer it is returning the layer.Name rather than the full path. However once the layer has been added to the document,...

View Article


Find Axis in Mesh

@PavelL wrote: Help me please. I want to define the axis of the mesh. For example I have a cylinder (mesh) I click on the cylinder wall, and the program builds a straight line, the axis of the...

View Article

Trimming a mesh in Python-Rhinocommon

@Goodriver wrote: I am trying to create a script in python-Rhinocommon that trims an existing mesh. It seems to work for a small mesh, but when applying it to a large one it seems to trim more faces...

View Article

Image may be NSFW.
Clik here to view.

Help: DynamicDraw project on mesh

@Holo wrote: Hi, I am exploring the DynamicDraw function, but apparently I lack the basic knowledge. I would like to know how I can project temporary curves on a mesh. A simple example would be:Pick a...

View Article


Font Appearing When Script Runs

@vilem wrote: I wrote a script and using the name of directories which contains the Czech letters (with diacritic - like č, ž etc.). when I run the script using debugging the letters sent with Command...

View Article

Is any way to get the screen plane?

@pythonuser wrote: Hi; Is it a plane parallel to the screen ? it is not the cplane For example: In the perspective view, the cplane cant rotate,but I think it will be a plane parallel to the screen...

View Article

Change all detail view display modes

@jcparks wrote: I'm working on a drawing that has about 9 sheets that each have a shaded detail viewport or two. While annotating I'd like to be able to make all viewports wireframe display mode to...

View Article


Problems trying to move a group of objects

@zoltan wrote: Hey all, I'm banging my head on a very frustrating bug that I can't figure out. I have a simple script that I use to vertically move objects down (or up) to the world-xy plane. I'm...

View Article


Find vertex of a 3D mesh object

@PavelL wrote: On the internet I found this code. It searches the mesh for the minimum point on the Y. Why Y? How to find the minimum point on the X or Z? Const rhObjectMesh = 32 Dim strObject,...

View Article

Is it possible to import in Iron Python .pyd files?

@Petras wrote: Hi, Is it possible to import in Iron Python .pyd files? If yes could you please tell me how? I want to use this line of code:from PyQt4 import QtGui, QtCore but I get error:Message:...

View Article

HSL to RGB conversion via RhinoCommon or (rhinoscriptsyntax)

@Helvetosaur wrote: I can't seem to get this to work. rhinoscriptsyntax wants different stuff from RhinoCommon, but I can't get either of them working... import rhinoscriptsyntax as rs import Rhino...

View Article

Image may be NSFW.
Clik here to view.

Orient / ArrayOnCrv with 2 reference points

@Mario_ILL wrote: The goal is to array an object along a curve using 2 reference points, so the start of the next instance is the end of the previous object.Example: array a fix sized fence frames...

View Article


Save python script as alias

@nagreste wrote: Hello! I stumbled across a useful python script on this forum, and I'd like to add it to rhino like a plugin so I can use it quickly from the command line, without having to load it...

View Article

Sequential Batch Export

@brobes05 wrote: Hi, I have been looking around batch export scripts on this forum and have not found a solution. I have automated Grasshopper to create sequential baking. The end goal is to bring the...

View Article


Gtk sharp on IronPython?

@emilio wrote: HiLooking for a way to build GUIs for Python scripts, I read something about gtk sharp.I downloaded it and tried (in Rhino) a sample script found on the Web, but (obviously) an error...

View Article

Looking for script to assign materials to selected layers

@Neben wrote: Hello, I am looking for a script that will automatically create a new basic material and apply it to the selected layer, with the material name being the same name as the layer name. It...

View Article


How to get GUID from selected object

@obakatsu wrote: Hi! I have been wondering how I can get GUID from selected object by python.Please tell me how. Thank you! Posts: 3 Participants: 3 Read full topic

View Article

Image may be NSFW.
Clik here to view.

Python scripting - function returning single item as tuple

@Helvetosaur wrote: Odd situation I can't figure out - I have a function that takes a single multiface brep and tries to get its outer borders, flatten those, make a planar surface from them, extrude...

View Article

How to use control key when get point

@pythonuser wrote: Hi; Press the control key will lock the cursor when I use the customgetpoint function, I want to change the color of point when I press control key and get the point, it is way to...

View Article
Browsing all 5892 articles
Browse latest View live