Dictionary key using Point3d fails in Python script
@Terry_Chappell wrote: I tried using these three points in a mesh face: p1 = Point3d(30.26158, 98.61151, 99.7001) p2 = Point3d(30.06, 98.78133, 99.66506) p3 = Point3d(30.04039, 98.67528, 99.86947) as...
View ArticleHow to get Cplane coordinates from GetPoint?
@siemen wrote: When you go to the right view and run this python code, how do you get the Cplane coordinates instead of the World coordinates as it does now? import Rhino import rhinoscriptsyntax as...
View ArticleBouding Box for Each Selected Group
@ShynnSup wrote: Hi everyone, I am working with multiple models on the same file composed of many individual parts. I was wondering if there was a way to automatically generate an individual bounding...
View ArticleMake new material bug? (python)
@Holo wrote: Hi guys, I am making a material with Python but I encounter a bug where Rhino removes the previous made material if I change the “NAME” in the script. It appears to make a new material...
View Article[python] How do I delete block definitions
@ivelin.peychev wrote: How do I delete block definitions using blocks_table.Clear() but only after reassuring that all blocks have been exploded? I need to be sure no geometry objects are inside any...
View ArticleShowing sub-layer objects
@ivelin.peychev wrote: Is there some trick to show sub-layer but hide its parent Other than just hiding the parent’s objects and keeping the layers visible? Posts: 6 Participants: 2 Read full topic
View ArticleUsing 'what' command inside the script
@slavamas wrote: Hello, I hope you can help me to figure out how I could use Rhinoceros more efficiently. I have built a cnc machine to cut out elements for mosaic. I am using Rhinoceros on Mac to...
View Article[python] rs.LayerId(layer_name) doesn't work on sub-layers
@ivelin.peychev wrote: When a name string of a sub-layer is passed on to this method it yields None Posts: 2 Participants: 1 Read full topic
View ArticleHelp, fast image manipulation
@Holo wrote: Hi guys, I am struggeling with a slow image manipluation as reading and writing each pixel take a long time. This script gets the viewport image and sets all RED values to 255, but it...
View ArticleScript only Working on Rhino6 WIP (Mac) an not on Rhino 5(Mac)
@ric wrote: Hi there I finished my first Script ever (feel a bit proud ) and it works fine (it’s not perfect but does the job). Unfortunately it’s only working in Rhino6 WIP (for Mac) and not on my...
View ArticleHatch on the Layer of the Curve
@aimo wrote: Hello all, i want create hatchs on the layer of the curves/surface. (i can use grasshopper to do that, but in this case/wish, i want to do it without grasshopper :)) in a sample file, i...
View Article[python] Usage of HiddenLineDrawing class example?
@ivelin.peychev wrote: Hi How should I use this when it’s a sealed class? I tried to derive it and I get an error: When I tried it differently I get a result None: image.png1380×656 36.5 KB Update:...
View Article[python] scripting Snapshots command issue
@ivelin.peychev wrote: Hi @dale There seems to be an issue (may as well be designed this way) with the -snapshot command when used in a script: If you create a couple of snapshots manually, then run...
View Article[BUG] PythonEditor when deleting triple-double quotes
@ivelin.peychev wrote: https://discourse-cdn-sjc1.com/mcneel/uploads/default/original/3X/f/9/f9e445269b6b370e08e562e19e190bc21e07cc31.mp4 Posts: 2 Participants: 1 Read full topic
View Article[Python] After running function the script does not allow to select objects...
@guziko1944 wrote: The issue is as desribed in title. I’ve got a first part of script (by Mitch Heynick - SimplifyCrv does not work) for simplifying near-circles coming from braille font of TextObject...
View Article[Question] HiddenLineDrawing
@ivelin.peychev wrote: Hi @GregArden, I have a question regarding the class HiddenLineDrawing. I understand you have to use a viewport for the calculation and not a simple plane because plane doesn’t...
View Article[python] How do I use modules from local CPython2.7 installation?
@ivelin.peychev wrote: When using local IronPython installation one can use the modules from existing local CPython2.7 installation by creating a .pth file inside...
View ArticleA basic loop (while) question
@felipevelizfadic wrote: Hi, Im a new rhinoPython user…i have a question…what´s the difference between first image and second one? Should the variables always be inside the while function? i want to...
View ArticlePlace circle at specific distance from endpoints of curve
@siemen wrote: Hi guys, I got a bit stuck again. I’m trying to make a script which asks for user input to select an object and asks for a distance. Then I’d like to explode the curve and make a circle...
View ArticleExtendCurveOnSurface
@RogerD wrote: Do we have a Rhino Vb Script command for ExtendCurveOnSurface in V6 as I could really do with one. Posts: 1 Participants: 1 Read full topic
View Article