Python - How to implement custom input of objects similar to Rhino
How do I implement Rhino.Input.Custom.GetObject to allow the user select multiple surfaces and/or polysurfaces. They need to be allowed to select groups and also allowed to select individual surfaces...
View ArticleHow is it possible to edit editpoints in Rhino common?
Hi @pascal and @stevebaer I am working on a script where I make a simplified offset of a 3D curve and I need to adjust the location of the new curve editpoints, but I have not figured out how, so I...
View ArticleSubD looks weird when move SubDVertex programmatically
Hi, I have a normal subd as shown in the pic below. I moved one of its vertex in python as follows vt = subdgeo.Vertices.Find(vtId) vt.ControlNetPoint = newPt When the operation finishs, the shape...
View ArticleWith Pyhton Script Model Space Scale Change
How to change Model Space Scale value with Python Script? Model Space Scale: 1 1 post - 1 participant Read full topic
View ArticleScript not working in V8
I am using the attached script by Clement Greiner to numerize the vertices of a mesh. Since switching to rhino 8 the script is not longer working, instead I get this error message. Any ideas how to...
View ArticleRhino 9 wip bug
the script editor in rhino 9 wip doesn’t works 2 posts - 1 participant Read full topic
View ArticlePDF by python script ignores Japanese text in Rhino 8
Hi. I have a Python script to export a Rhino layout to PDF. In the script, I add some text to PDF page. It works fine in Rhino7 both with alphabet and with Japanese font. However, in Rhino8 Japanese...
View ArticleMatch 3D curve length
Hello, I have a list of curves that need to be matched according to the length of the longest curve. In the file the longest curve is 962mm and I need all the curves to be of the same length. Does...
View ArticleRhino.Input.Custom.GetObject - Surfaces vs Faces Indexing (Python)
Using Rhino.Input.Custom.GetObject. Filtering by surface and polysurface. When the user selects a single surface within a polysurface, the GeometryComponentIndex.Index is returned as a number > -1....
View ArticleSelect objects that intersect
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleUsing Python Stubs in VSCode?
Hi, I am wondering about the correct usage of the Rhino-Stubs within an outside IDE when writing Python? Specifically, VSCode. I am able to pip install the stubs just fine, and they are mostly...
View ArticlePersistent Object Info Window?
Hi all, Anybody have a script (thinking Eto maybe?) that could keep a persistent (option: Docked) ObjectInfo window open? Current reason: See continuous info about objects’ surface degrees. Thanks,...
View ArticleWay to fire a command without it adding to the undo stack?
Hi there, As the title says, is there a way to fire a command without it being recorded in the undo-stack? I use a custom command SetTargetToCursor quite frequently: CommandTracker shows I’ve used it...
View ArticleHelp with ghpython
I have installed python3.10,vscode,and use pip install rhino-stubs.but i can only ‘‘import rhinoscript’’,‘‘import rhinoscriptsyntax’’,can’t “import Rhino” 2 posts - 2 participants Read full topic
View ArticleIssue: RH8 rs.TransformObjects() makes object attributes disappear
Hi There, I am using a mechanism in my scripts that goes down the block tree recursively and executes a function on each object. When I create copies of objects that are children of linked blocks,...
View ArticleProblem on importing numpy on GHPython (RH8)
I got this issue when trying to import numpy. I was able to use the numpy library for Python3 on Rh8 but isn’t working anymore. The reported error message is this: " 1. Error running script: Error...
View ArticleCopying surface from block in python
Is there a way to copy a surface from a BlockInstance without exploding the block? I’m generating a bunch of different blocks to design a facade, but for simulations I just need to copy/choose a...
View ArticleIssue: Definition name changes unexpectedly when changing UpdateType
Hi there, I have a script (python/RhinoCommon) to embed all linked blocks in my model, export a specific InstanceDefinition and restore the state to before the script. I would expect that changing the...
View ArticlePermission Issues with Python Script for Extracting and Saving Files
unnamed.gh (11.6 KB) I’ve been working with a Python script for the past few days. My goal is to find and read a file from within a rar file and save it to my drive for future use. However, I’m...
View ArticleC# scripting: selection highlight lost when toggling option
I want to use GetObject.GetMultiple for the user to make a selection and be able to set an option, in this case an OptionToggle. In the code below everything works as expected, except when toggleing...
View Article