Things don't always go as planned
I have been working on a new Python/C++ script to quickly import an .obj file of a mesh. But I was off by 1 in the indexing of the vertex indices and end up with this: image806×508 528 KB instead of...
View ArticleAngleUnitSystem, PyghaCompiler, parallel.run?
Hello, What these mean and how to use them in GhPython? AngleUnitSystem, PyghaCompiler, parallel.run import Rhino as rh import GhPython as gh import ghpythonlib as gb rh.AngleUnitSystem.Degrees...
View ArticlePDF Creation - Control Line Width
Hi, I’ve pasted code below that I use to create a PDF document for all of the layouts in a file. I want to know how I can control the line width property. My prints using this code have a hairline...
View ArticleCurves and Surfaces baked automatically?
Hello When i use rs.Add… everything baked and added to Rhino , how to solve that? helix.gh (8.6 KB) image1234×555 70.1 KB 1 post - 1 participant Read full topic
View ArticleMoving grips with python
Hello all, I’m rather new to python and rhino scripting, please bear with me. I want to let the user select and move any type of object including grip in a certain direction, using python. I figured...
View ArticleWish: "SelFence" type of selection that is directional
Don’t know if this is easily doable, but I’ll throw it out here just in case… Aside from individually mouse picking objects, when objects are selected by any other method - Window, Crossing, Brush,...
View ArticleRead layers list from ini file (colons problem)
Hello everybody! I am trying to read an ini file where I previously saved a list of layers in a section: [layer_selection] Layer 01 Layer 04::subLayer04::subSubLayer04 the rs.GetSettings is not an...
View ArticleScript to mass export CAD files
Tenho um projeto com varias peças e quero exportar cada uma delas em dxf separadamente de uma unica vez , é possivel? me ajudem! 6 posts - 3 participants Read full topic
View ArticleRhino Pdf and Print image Python
Hello… i found in forum the printer command, but if I call Rhino PDF as printer name, it doesn’t work… i need a script that when i run it it print the rhino window in Pdf AND a picture with “rhino...
View ArticleETO Userform Problems with Touch Screen Laptop
Hi, I have a Dell Precision 5540 laptop which has a touch screen and have scaling issues when viewing on the laptop versus viewing on an external monitor. My forms are built in Rhino 6 using ETO Forms...
View ArticlePython , different custom mesh per object
Hello! Is there a fast way to assign a custom mesh to an object using python? what I need to do is to export in a single obj the objects of each layer with a different meshing quality. 1 post - 1...
View ArticleAsk users to save file?
I’m using SetDocumentUserText in my Rhinoscript, but after the script runs I don’t want users to be able to close Rhino without warning to save file. Is there a way to do this? I suppose I could add a...
View ArticleThick curve area
I’m trying to calculate the area of a curve with a certain thickness. Is not really a problem until you get into self-intersecting curves and have to take into consideration overlapping regions. I...
View ArticleCreate custom toolbar button to run a RhinoPython script?
Like the title asks, is it possible to create custom toolbar button to run a RhinoPython script? I’ve searched the RhinoPython rhinoscriptsyntax docs, but haven’t found anything. I’ve done forum...
View ArticleNominating a 'face' and then extracting it later
Hi all, I’d like to create a primitive (box 90% of the time) and somehow identify one of the faces as the important one. This will be the ‘machining face’ to cut on a CNC router. (Think melamine in a...
View ArticleGhpython Assign colors to tree branches
Hello how to assign different n colors to n branches? color tree.gh (15.0 KB) image1477×727 90.2 KB a = [] b = [] #if y have tree access #for i in range(y.BranchCount): #branchList = y.Branch(i) #for...
View ArticleNeed an example for Rhino.Geometry.Brep.JoinEdges
I’m barely familiar with RhinoCommon and there’s not a python method for this, hence the request. Thanks in advance. image1412×892 15.8 KB 1 post - 1 participant Read full topic
View ArticleSimple BATCH File issue
Hello Everyone, I am needing a little help sorting this one: would like to trigger a specific Rhino file , from a Batch (*.bat) file, and run a script on that *.3dm file. I have seen/read here in the...
View ArticleGet video hardware & driver information
Hello. At the beginning of my code, I would like to know if there is a video card installed in the system or if tasselation is on, something that confirms me that i can run ViewCaptureToFile to save...
View ArticlePolyline array script
Dear all, I’m using Rhino 7 beta and I’m trying to do a simple thing like drawing rectangle polyline. I tried to follow the instructions from the script help and wrote the code like this: Call...
View Article