Attribute User Text: set Key and Value with Python-Script
Hello! I use Attribute User Text to assign informations to an object: docs.mcneel.com Attribute User Text properties | Rhino 3-D modeling Properties that manage user text. To automate the process I...
View ArticleHow to get all the text in a RhinoPageView?
I’m trying to modify Kelvin Cheng’s script that prints one PDF page of each Layouts as a separate file. I want to add to each PDF file’s name suffix of a text object in that layout (it’s a revision...
View ArticlePlease fix rs.JoinSurfaces for V8
Right now rs.JoinSurfaces() is a really dumb function - and it doesn’t need to be. The current wrapper code is this: def JoinSurfaces(object_ids, delete_input=False): """Joins two or more surface or...
View Article/runscript flag doesn't work if Rhino started from subprocess.Popen
I can’t get Rhino to runscript via subprocess.Popen. It opens the file correctly, but doesn’t run any commands. It works fine when run from cmd prompt. Also doesn’t work when run from Cpython. Why...
View Articlers.LayerVisible much slower than "toggling lightbulbs" in the panel
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleHow to exclude nested blocks inside externally linked blocks
The script below manages to exclude nested blocks that are inside embedded blocks, but doesn’t seem to work for blocks nested inside externally linked blocks (those inserted with “Linked” “Reference”...
View ArticleSpawning multiple Rhino instances stops due to licensing prompt
Running scripts that start larger number of Rhino windows (30+) causes these prompts for licence to pop up. Once filled in the processes start as intended, but ideally these wouldn’t show at all, if...
View ArticleI can't undo a python script that lock layer in Rhino 7
For example, in a blank document, I added ‘Layer 01’ and then I ran this python script: import rhinoscriptsyntax as rs rs.LayerLocked(‘Layer 01’,True) After that, when I do the undo command (or Ctr...
View ArticleIs it possible to postpone loading of externally linked blocks?
Opening a file with blocks that are externally linked might take a long time and I think that it would be useful to be able to set rules when those blocks are loaded - for example blocks that are on...
View ArticleRhino Python Editor: No module named Grasshopper
Hi all, My Rhino Python Editor can no longer import the Grasshopper module. I wrote a little script (script A) that opens grasshopper files from Python. import rhinoscriptsyntax as rs import...
View ArticleExtruction of a list of a 3D curves
Hello all, could you please help me? I’m trying to create a ramp that consists of different tiles. Part of the assignment is to integrate python code. Lately I have succeeded to create a 3D surface of...
View ArticleBug Report: Adding detail to Layout crashes Rhino (Python)
Hi fellow Rhino users and Developers, trying to automate a boring task I have found what I believe is a bug in rhino. The following script starts Grasshopper, loads a script and bakes an object. That...
View ArticleRebuilding mesh normals by python code
Hello, I want to rebuild mesh normals for a stripped morphology of meshes in grasshopper. I saw a script that used C# script to do this. Can I do the same in grasshopper python? I am writing a...
View ArticleHelp: speed smooth a mesh as fast as -Smooth
I am trying to smooth a mesh X number of times, but if I loop it in Rhino Common then it is much slower than Rhino’s Smooth command, why is that, and can I improve it? import rhinoscriptsyntax as rs...
View ArticleAzure Purview Support for Alteryx (APA) Platform
We are exploring Azure Purview and would like to know if there is any Third Party support for Alteryx - the Analytic Process Automation (APA) Platform? The doesn’t appear to any native support for...
View ArticleHow to press Escape key in the script
Is there a “utility” command like “_Enter”, “Pause”, but for the escape key (e.g. “_Escape”). I’m trying to get this script to work, but in the last line “-NamedCplane” command still waits for input...
View ArticleHow to modify contents of 3dm files without opening a new Rhino instance?
This thread from two years ago suggests that the only way to modify entities of 3dm files is removing the old ones and adding new ones - however I’m not sure if that wouldn’t break methods that rely...
View ArticleIs it possible to pass arguments to RunPythonScript?
I’m trying to spawn multiple Rhino instances with a python script and make them load the same script that started them, but run it differently. I thought that it can be achieved by passing arguments...
View ArticleDisplayText property of Text objects returns Text Field (aka )
I’m trying to format file names using named Text Objects on Layout pages - unfortunately it breaks if text fields are used in text objects (e.g. %<PageName()>% or custom fields in Document User...
View ArticleBest way to reduce file size in terms of display performance?
I’m trying to optimize a heavy Rhino scene by breaking it into linked blocks and creating their proxies, that is smaller versions that show only the most distinctive features and load the full blocks...
View Article