GhPython : list partition
@seghierkhaled wrote: Hello i tried list partition with ghpythonlib.components but didn’t work, what is the problem and is there another method to do it ? image988×350 21.2 KB import rhinoscriptsyntax...
View ArticlePolyline to list of points and vectors
@thomas.sicouri wrote: hello guys, I think it is a basic question but i am struggling. I am trying to import a set of lines ad polylines from rhino to python. i would like to extract the point...
View ArticleCurves through points from a point matrix
@jcraig0611 wrote: Hi all, I’m very new to Python in Rhino and have run into a bit of a snag for a script I’m trying to write. In the lines below, I establish a point matrix based on user input via...
View ArticleBug in SR23 RC : Error with adding text objects in python
@Holo wrote: Hi guys, @stevebaer @wim it seems you have changed something that makes adding text objects requiring a font to be defined. This causes scripts that has worked for over a year to suddenly...
View ArticleObject Date Modified
@Ncik wrote: G’day everyone, I’m trying to develop a QA process to identify parts that are un-finished. A clue to this is to highlight parts that have not been modified in a while. (probably a colour...
View ArticleEnable HistoryRecording with macro. How to turn on?
@leex wrote: Hi How to turn on before starting a command and then turn it off after completion? Posts: 4 Participants: 3 Read full topic
View ArticleHow to get raw code content of another python script
@yun.sung wrote: @piac Is there a way for a python script to get the raw code from another python script? Similar to how GhPython.Assemblies.CodeGeneration.GenerateComponentCode works? The output...
View ArticleUrllib2 problem
@mahaidong wrote: import urllib2 req = urllib2.Request(‘https://developer.rhino3d.com/’) response = urllib2.urlopen(req) print response.info() html = response.read() print html it can work on windows,...
View ArticleBug in rs.AddHatch()?
@Holo wrote: Hi, if I run a simple script to hatch a closed curve in a new document then no hatch is generated if a hatch type isn’t defined. BUT if I make a normal hatch with a solid fill first, then...
View ArticleHuge file rvb
@Vito wrote: Hi! I have a small problem (actually is quite big for me) I was hired recently and I’m supposed to be the only developer (the previous one quit). I have coded in C# even for Rhino but...
View ArticleHow do I add a library to RhinoPython?
@shepherdpg wrote: I am interested in learning how to access non-standard python libraries from within RhinoPython (not GH Python). Specifically I am trying to use the PIL library, but I am assuming...
View ArticleError: write EPIPE
@Erdem wrote: Hello everyone, I installed Visual Studio after discovering PyCharm. A much more comfortable way to code. I followed all of the instructions here. The problem is that when I run a python...
View ArticleLayerSelected?
@wynott wrote: Is there any way with python to know what layers the user has selected/highlighted in the Layers tab? I.e. select a layer and do stuff to it, rather than having to make a layer current...
View ArticleHow do I add the "Metal" material to an object with python?
@Jack_Minardi wrote: I would like to be able to add the “Metal” material to an object and then change some of the metal material properties (like “Polish”). To accomplish this in the Rhino UI: Select...
View ArticleGHpythonlib.compornent Processing is not executed even though there is no error
@y.yamakaze.k wrote: comp12552×1462 344 KB comp22560×1430 514 KB offset.gh (8.0 KB) I wrote a program like the picture to execute the grasshopper offset component with GHpython, but the process is not...
View ArticleEto.forms.GroupBox.TextColor
@onlyforpeace wrote: hi! i search to undertsand how i can use the documentation of Eto. I think it will help me to understand how the python syntax would be done! i found how i can change the color of...
View ArticleRhinoCommon 'SnapToLocked'
@Helvetosaur wrote: Having a brain fart here - how do I get Rhino.ApplicationSettings.ModelAidSettingsState.SnapToLocked to return the Boolean value of the current state? What I get is this:...
View ArticleClose blockEditor with rhinoscript
@timcastelijn wrote: Hi There, I am trying to create a new block editor with rhinoscript. To prevent interference with the existing block editor (dialog) I want to close it with rhinoscript....
View ArticleOBJ to to string
@sam.degeyter wrote: Has somebody an idea how to use the obj-description of an object in a python script. At the moment I export it to an obj file and read it from there but this is a time consuming...
View ArticleGet end points of line
@eric.bunn wrote: I know I can use GetObjects to get all the curves in a selection but want to drill down further. I would like to determine if the curve is a line and get its end point coordinates....
View Article