RhinoScript - Slope Ratio Calculation
Hi All, I have been working with Grasshopper to calculate the slope of lines that deviate from a true horizontal reference line. Now I am wanting to obtain the same type of functionality using a...
View ArticleSave Geometry in Json
Hello i have to convert a rhino Geometry and store it as a JsonFile. I am stuck on a Brep simply because have too many information to store. Is it possibile to store directly the data (even as ascii)...
View ArticleShow Surface Isocurves - ShowIsocurves
Hi, I found this function (ShowIsocurves) in RhinoScript help, and I am assuming it is a VBScript function? Is there a corresponding function available in Python. I want to turn on and off isocurves...
View ArticleETO changing imageviews
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleEmbedding images in a Python script with base64
I have a script that has images required for the UI, and I was wondering if it was possible to embed the images in the script, instead of having to save them somewhere on the hard drive. So I googled...
View ArticleAutomatically connect corner points with lines?
Is there a script that can do this? I am wondering. image892×716 6.89 KB 4 posts - 2 participants Read full topic
View ArticleCan i send commands to rhino from another application (link to excel sheet)?
I was thinking of a script that zooms to a certain location in the rhino doc when i click a button in an excel spreadsheet… is this possible to do with VBA? 3 posts - 3 participants Read full topic
View ArticlePreventing copying of plugins created by python
I have some plugins written in python and create * .rhi files with Rhinoceros Script Compiler. My problem is that I want to prevent users from sharing that plugin (we only use it internally) using a...
View Articlers.AddAlignedDimension() will not add dimension if
if point_on_dimension_line matches start or end_point. Or any other point on the line between start and end_point. rs.AddLinearDimension will and Rhino.AddAlignedDimension will also....
View ArticleCompiler, add folders of scripts?
is it possible to add a folder and have it read all the scripts in subdirectories? i have a main directory of scripts organized into subfolders based upon what they do. i’m under the impression that i...
View ArticleSelect subcurve in a curve
Hello, I need to select subcurve within a curve with python the curve from which I need to select a subcurve is consisted of several segments, so it has subcurves from help files I created a script:...
View ArticleReadable Date and Time from Sun.GetDateTime in Python
Hi All, I can access the Rhino Sun date and time in Python in Rhino or in Python in Grasshopper with this simple code. from Rhino import RhinoDoc as rhdoc from System import DateTime as datetime sun =...
View ArticleNetwork surface
Hi there! I was trying to create a network surface but have no errors return and nothing return which means not successfulprint1014×89 2.07 KB NetworkSrf726×513 13.7 KB According to the rhinosyntax...
View ArticleThings 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 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 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 3 posts - 2 participants Read full topic
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 Article