ScriptEditor - could we get the little vertical line at 80 characters?
Like EditPythonScript has… Might also be nice to have an column indication in the status bar for where the cursor is currently located like some notepad-style programs have. 5 posts - 3 participants...
View ArticleSame code but different results in GH Python3 and Python 2 components
Not sure if it’s a bug, but when I try to filter input values, it gets different result in python3 component. The code is pretty simple: if x%2 == 0: a = x else: b = x 1 post - 1 participant Read full...
View ArticleHow can I get hint in Script Editor?
How can I get this kind(red) of friendly hint of method in the R8 Script Editor. And please tell me how I can do python script in VS Code. Below is the whole code I have written following the...
View ArticleSelect all degree 5 or above surface, or curves at once in rhino file
I ask this because recently the factory raise an issue that they do not accept any surface that is degree 5… so I have to explode the poly surface and pick all of them to convert… any quick way? I...
View Article"Select by material name" with python and/or rhinocommon
I have been trying to perform “select by material” with script in python or rhinocommon. Couldn’t find anything similar in the doc… There is a series of findby… methods under...
View ArticleScripts not working in rhino 8
I have all these scripts that when i try to run they just go blank is there some other way to load my py scripts? from r7 and previous @pascal 9 posts - 5 participants Read full topic
View ArticleRhino 8 - Python 3 - input function
While is input() not working in Python3.x for Rino 8? Even this basic scritp does not work datain=input(“Insert string”) 1 post - 1 participant Read full topic
View ArticleOffset Line (Crv) method with Both Sides option?
Hi I am trying to offset a 2 control point line in grasshopper. The Rhino Offset command works perfectly with Both Sides option and Round Cap option, but its only in Rhino. The pufferfish Offset Curve...
View ArticleScripteditor crashes Rhino8 when C# scriipt is changed from VisualStudio
I noticed that while a C# script file is open in ScriptEditor, when that same file is changed from VisualStudio, this causes a crash. It only seems to happen with VisualStudio, not with another...
View ArticleA closed brep based on three and more c-planes
Hello, is there a concise way to generate a closed brep based on the intersection of three c-planes? My approach involves finding the intersection lines of the c-planes, then combining them into...
View ArticlePython requirements in Rhino
Hello, A new syntax has just been approved for Python scripts which specify their own requirements, equivalent to the # requirements: package_name lines used by the new script editor in Rhino 8. It...
View ArticleDefine a block by using an insertion plane in Rhino and not GH
Hi @dale @fraguada, How do I define a block by using x and y directions and an insertion point in Rhino 7? PS. I do know Elefront allows to add an insertion plane. I’m looking for a similar feature in...
View ArticlePython script to 'Select Sublayer Objects'
Hi! I am trying to script the ‘Select Sublayer Objects’ command from Layers but so far I don’t even know where to start looking for this command. Is there someone willing to provide slight guidance or...
View ArticleTrying to delete selected layers from blocks s
Is anyone still here ? Trying to delete selected layers from blocks in PY rs.DeleteObject(Guid) Won’t work DeleteLayerFromBlock_notworking.py (2.3 KB) 3 posts - 2 participants Read full topic
View ArticleObject Axis in python
I’m working on a python script and I need access to the Y axis of an object selected by the user, but I’m not sure how to get that. By “Y axis of an object” I mean the same axis/vector you get from...
View ArticleR8: how to turn off a model space layer locally?
Hello! Since R8 the model space layers have this second, local visibility icon (praise you for that!). I wanted to ask how to set that in Python. Last year I wrote a script that turns off all the...
View ArticleWish: Python print("string") not to be displayed in realtime
Sometimes I want a lot of text printed (or often I forget to disable print… when testing on larger data sets) and Rhino prints one line of text per display update frame. Causing it to be limited to 60...
View ArticleScript / macro to hide objects not in block during a block edit session
Hi @dale @wim, Any way to hide objects not in the block during a block edit session? Like a toggle or so? I’m aware that isolating the block instance before editing is a solution. But I’m looking for...
View ArticleGHpython function, role of second argument "i"
Dear All Please excuse my ignorance, I am trying to understand a GHpyhon code from a tutorial as attached. I understood most of it, except that I couldn’t figure out what the “i” does in the function...
View ArticleHow to load a Python custom command in R8?
Hello! What I’m trying to do is installing a custom command that worked in R7 for R8. For that, I copied the whole folder C:\Users\xxx\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\PythonPlugins to...
View Article