Rhino 8 Python 3 issue with multiple scripts
Hi @eirannejad I encounter a bug where I have to restart Rhino when I want to run different scripts in Rhino 8 with Python 3. Here is what I load in one script: """ NOTE: DOWNLOAD DIRECTLY """ # -*-...
View ArticleHelp in debugging logic... :scream:
I have been going around with this for an hour or two and I finally gave up… The script below (part of something larger) prompts the user to select a boundary curve and then gets all the other brep...
View ArticleScriptEditor automatically install older packages
How to solve the following problem: I locally installed a python package version 2.0.10: C:/Users/petras/.rhinocode/py39-rh8/python.exe -m pip install . It does the following: If there is even a small...
View ArticleBrep Faster Holes? using AddTrimCurve?
I have a set of closed co-planar curves. One is the “outside” and the reset are “holes” & I know which. I need to make a Brep in order to render them. I have been using...
View ArticleV8 Script Editor: questions re: publishing .gh
Hi all (especially @eirannejad ), I am starting to learn how to publish my gh files to Rhino using this video. Within my .gh file I have a Custom Preview component, so I can visualize what is...
View ArticleHow to RunScript in Headless Doc - Python
Hi, I’m trying to use RunScript in a headless doc. I can’t figure out why this doesn’t work I get this error Unknown Command: /Users/johanpedersen/Desktop/test.3dm doc = RhinoDoc.CreateHeadless(None)...
View ArticleCreate sub-layer, move objects to that layer
I need community assistance: I like to do the following actions with a Macro: The sublayer named Curves001 will be created under layer Curves (if none, create one), its statue is invisible. All the...
View ArticleRhinoScript OffsetCurve problem
I have a script works well in Rhino6, but when I run it in Rhino 7, the offsetcurve works differently, I have give the direction with the centroid area point to make as inside curve, however, it still...
View ArticleLaunch a script stored in my phone?
I do want to launch a Rhino script that I do stored in my phone and I can see-it from Windows Explorer, I copied the path to clipboard and created a button in Rhino to launch the script using that...
View ArticleZebra Stripes in Grasshopper with C#
Hello, I’m trying to make a quick C# component that does a Zebra Stripes preview of a brep. Nothing I do with DisplayPipeline or DrawZebraPreview works at all. Surely it should be something like:...
View ArticlePlug-in creation tutorial?
I have a couple of dozen Python scripts that I currently hand out to a small group of colleagues, and I thought it’s probably time that I put them together into a plug-in… I have avoided this in the...
View ArticleRotate Text in Python
Hi All, I’m trying to write a function that inserts text on a drawing, with an optional rotation value. The problem is that there doesn’t seem to be an argument for rotation in the ‘AddText’ method,...
View ArticleBug in Common? Project curve to plane adds points
Hi guys, please take a look at this. I am altering curve editpoints and need to make a 2d version of the curve and then locate that versions editpoints, but if I coerce the curve (some curves only!)...
View ArticleAdd multiple objects from python to Rhino in one step?
Hi In Rhino8 Script Editor python 3: from an excel file : I’m reading point coordinates, creating vertices, creating triangular surfaces. I have around 30,000 triangles...
View ArticleTextEntity.Style has no effect?
Hi All, I’m trying to add some text to a document, and specify a text style upon creation, but for some reason, the style doesn’t seem to have any effect. Here’s my code: def InsertText( doc, Layer:...
View ArticlePython 3 Loading DLL File
Hi everyone, I am trying to load dll file using python3 in Grasshopper, and not sure why it is not regconized. File name and directory are both correct. Can anyone help me to look at this issue?...
View ArticleETO TabControl Click event not registering
Hi all, I am trying to use a nonmodal dialog with tabcontrols in cpython Rhino 8. So far so good, but I would like tot use the forms.TabPage Click event. For some reason the event it is not...
View ArticleDo ETO forms work in Python?
Eto forms and Python: Does it work? 7 posts - 3 participants Read full topic
View ArticleOrientation and normal direction of BREPs
Hi! So I started scripting a couple of months back now with a class about computational architecture and python scripting, our latest assignment consists of making a script to do half-lap joints on...
View ArticleNormal vector on a closed polysurface
Using python, what is the best way of getting the normal vector of a closed polysurface on a specific point (on that polysurface)? Rhinoscriptsyntax has SurfaceNormal but it doesn’t work on...
View Article