Realtime track mouse cursor position in viewport and get coordinates
@ivelin.peychev wrote: Quite some time ago I was following a tutorial for using CommandOptions with Python and the result was a colourful line drawn between the first click of the mouse (which creates...
View ArticleDifferent "BoxBlur" Algorithms
@blazetron420 wrote: Im trying out some different ‘boxblur’ algorithims, but specifically, to blur surface normals on surfaces. I have had good luck with this one: GeeksforGeeks – 6 Feb 20 Box Blur...
View ArticleAddRows for a DynamicLayout using a for loop and a list - Eto Forms
@carlo1 wrote: Hi i cant see this mentioned anywhere so i must be going about it wrong (except it nearly works). so im trying to make an eto form dynamic layout that might change the amount of rows it...
View ArticleSaving class instance with pickle
@raylee14 wrote: Hi everyone, I saved a mesh and a class instance with pickle to a pickle file: with open(‘test.pickle’, ‘wb’) as fileout: pickle.dump(mesh, fileout) with open(‘test.pickle’, ‘rb’) as...
View ArticleHow do I get the optional outputs in an overloaded function again?
@Helvetosaur wrote: I forgot (or not sure I really ever knew)… For example: https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Input_Custom_GetPoint_Constrain_1.htm (the basic output is just...
View ArticleCreate a tube along a line immediately after defining said line
@Aplonis wrote: I have a script that runs in the macro window and defines a number of straight lines at various angles. Below, I example one such straight line. Line 0, 0.000000, -0.451500 -6.776502,...
View ArticleLoading Grasshopper Document from Rhino Python Editor breaks print function
@dks5254 wrote: I’m having trouble properly wording the title for this, but I can explain further here. I’m working on a rhino command (written in the rhino python editor) that uses the...
View ArticleUpdate ETO form after user has changed input data using the ETO form in real...
@carlo1 wrote: Hi everyone so im looking to make my ETO form update when the user changes something about the input data in this example, I would like mutiple things to update the eto form in real...
View ArticleQuestion regarding RhinoPythonCommands
@ivelin.peychev wrote: What could be the reason a python script to be running just fine but after compiling it to a command to not work? I know I don’t provide any information, but the information...
View ArticleRefresh ETO form in Python
@carlo1 wrote: Hi everyone. I made a pretty complicated post here but i thought id simplify it. is there anyway to refresh the eto form while you are on it in python? or close and reopen it? or...
View ArticleSet Text Alignment Property on Label and TextBox in ETO Form
@eric.bunn wrote: Hi, How does one set the text alignment property on a label or text box in an ETO Form? I found the TextAlignment property but don’t know how to format the code? Eric Posts: 1...
View ArticleETO Modeless Form Close Button
@eric.bunn wrote: Hi, How would one add a close button to the modeless userform in the link below? This example closes with the X on top. I would like a button to close the form and do the same...
View ArticleIs there a way to pause meshing in RhinoCommon?
@jmcauley wrote: I was cutting lots of shapes out of another shape and the boolean difference was failing. So… I cut out each shape in a loop and used a try catch block to catch failures and added...
View ArticleGhPython: Multiple Inputs are all given same list length when input to functions
@D.Ronald wrote: I am struggling to understand how Grasshopper and GHPython are handling multiple inputs. I need to understand this before I can really build out a lot of my script. Context I want to...
View ArticleSerialize and deserialize geometry [Python] - ByteArrayToCommonObject return...
@agi.andre wrote: I’m trying to serialize and deserialize geometry by using CommonObjectToByteArray and ByteArrayToCommonObject But when recreating the object with ByteArrayToCommonObject it only...
View ArticleHow to find RhinoInside .dll in NuGet?
@michaldengusiak wrote: How can I find in NuGet following libraries: RhinoInside.Revit.dll RhinoInside.Revit.GH.dll image1838×723 110 KB Posts: 1 Participants: 1 Read full topic
View ArticleWhat's the python's equivalent of "SetView C T" would be?
@Asterisk wrote: Doing this now: rs.Command("SetView C T"), False Posts: 4 Participants: 2 Read full topic
View Articlers.WindowPick is incredibly slow vs Rhino.WindowPick = instant
@Asterisk wrote: I’m rewriting our rhinoscript in python and I stumbled upon this. import rhinoscriptsyntax as rs AllPD = rs.WindowPick((-140,-190,0),(99999,-99999,0), None, False, False)...
View ArticleUnable to convert Guid to curve
Hi All, Hope you are all safe !. I am trying a very simple code to draw 100 circles inside a rectangle, then I will use 2 loops to delete 1 of every 2 overlapping circles as follows: for n in...
View ArticleGraph Algorithms in Python for Rhino & Grasshopper
Hello All, I am an intermediate user in Python scripting and I am willing to implement Graph Algorithms for different geometry classes like Brep and Mesh specifically. I tried finding online resources...
View Article