What code for button place point at apparent intersection of curves
Hi V5 wish to make button to place a point at apparent intersection of two curves. What should the code be please. left mouse button for ortho views. Is it poss to also have this happen in a...
View Articlers.DetailScale incorrectly returns 0 when redraw is disabled
#! python 3 import rhinoscriptsyntax as rs rs.EnableRedraw(False) layout = rs.AddLayout("new layout") detail = rs.AddDetail(layout, (1,1), (7,7)) old_scale = rs.DetailScale(detail) new_scale =...
View ArticleFast way to isolate one object in detail?
I’m making a script that creates layout views for many (tens to hundreds of) part objects with front/top/right/iso detail views for each, and I need to have the details show only the single desired...
View ArticleYak Packaging: Including Both Public & Private Python Dependencies
Hi everyone, I’m building custom Grasshopper components using the Rhino 8 ScriptEditor (CPython) and packaging them into a YAK installer. Currently, my users have to perform two manual setup steps...
View ArticleTranslucent Point Cloud with strange "back face culling"
I am drawing point cloud to represent object density and the point display in very different way denpending on viewing angle. Each point has an alpha value assigned from 1 to 0. I expect a fuzzy,...
View ArticleBetter way to collect objects created via rs.Command("Split")?
I am needing to use rhinoscriptsyntax to split a largish series of curves with some other objects. For various reasons it is too complex to script with RhinoCommon or rhinoscriptsyntax methods, so I...
View ArticleApproximating an ellipse with 4 or 8 arcs
This script will approximate an ellipse with 4 or 8 circular arcs all symmetrical about the ellipse’s major and minor axes and with all G1 joints. The 4-arc method finds the pair of arcs with minimal...
View ArticleRhinoCommand to run CPython scripts
Hi @eirannejad , I’m looking for a way to run a CPython3 script from commandline (in my case calling it from a C# plugin tbh). Like we have RunPythonScipt <scriptname> for the ironpython legacy,...
View ArticleCreating Collapsible Optional Inputs in GHPython (Rhino 7, Python 2)
Hi there, Due to company policy and resource constraints, I’m currently required to continue using Rhino 7 and Python 2 for the foreseeable future. I’m wondering if it’s possible to create collapsible...
View ArticleRhinoScript set camera new camera plane using the ViewCameraUp method
I apologize that I don’t know exactly where to post this. I am very unfamiliar with RhinoScript or VBScript in general. Ultimately, I want to tilt the camera to the closest C-plane “horizon”, but I am...
View ArticlePasting into Vb script editor ruins text formatting
Hi, I came across this weird bug where copying simple vb script methods from the vbscript help file reformats the text in the editor causing the scripts to malfunction. Here is the script from the...
View ArticleRhino 8 GH1 scripting components hints not showing
I recently moved to Rhino 8 and new python/C# components no longer giving hints for custom class anymore. Old python: New python: what am I doing wrong? Edit: I’m using R8 SR21 3 posts - 1 participant...
View ArticleEditing Old Iron Python Scripts in new Rhino 8 Editor
Hi all Are there any issues editing and running older iron Python scripts in the new Rhino 8 Editor. Can these scripts be converted to Python 3 easily? I’ve tried to edit some older scripts that won’t...
View ArticleHow to create objects in a layout using RhinoScriptSyntax?
AddDetail(layout_id, corner1, corner2, title=None, projection=1) AddLayout(title=None, size=None) I’ve successfully used AddDetail and AddLayout to create layout, but I want to go further by creating...
View ArticleIssues regarding the surface extension code in C#
I used AI to write a code for surface extension, which is currently functional. However, it doesn’t work correctly for non-quadrilateral surfaces. What I need is to extend all three edges of a...
View ArticleVase for lesson
Hidden for clarity by Admins (click for more details) 7 posts - 5 participants Read full topic
View ArticleFunction to Insert a file works in Rhino 7 but fails in Rhino 8
Hi All, This Function for inserting a file works in Rhino 7 but quit working in Rhino 8. Something to do with rs.Command formatting? Can someone shed some light as to what the problem is or suggest...
View ArticleLinearDimension prints sideways in WorldZX plane
I don’t know what I’m doing wrong, but the linear dimension prints sideways. How can I get the linear dimension to appear correctly above the line it is measuring while aligning the dimension to the...
View ArticleHow to get viewport bitmap of raytraced through Rhino common?
Hi @nathanletwory Can you please explain to me how I can capture the viewport bitmap from Cycles with Rhino Common? When I run this script that works for other display modes all I get is a white...
View ArticleRC MakeDeformable() question
I assumed that MakeDeformablewould be able to be applied to any kind of geometry - as that is its purpose and it inherits from GeometryBase:...
View Article