Empty array
@Cyver wrote: Hi all, i need to check an array to determine if is empty or not, i thought "isEmpty" was appropriate , but seems to work only on string not on array, and my code return false even the...
View ArticleGetting 'unexpected token ;' error message in Rhino Python editor but cannot...
@Bianchi wrote: I have been getting the following error message in the Rhino Python editor recently. This has not happened before (as in this error only started cropping up when I tried to run the...
View ArticleMouse-over point OR the Object - why not both?
@RIL wrote: I'm trying to write a script where mouse-over movements displays which current OSnap alternative would apply if clicking the object at that moment in time. The code: rc, pt_start =...
View ArticleRectangle no polycurve? IsPolyCurve( rectangle ) results in False
@Michael_Meyer wrote: Hi..., I wonder why a rectangle is not a polycurve? This python code results in False: rhinoscriptsyntax.IsPolyCurve( rectangle ) Thanks Michaelwww.flexiCAD.com Posts: 3...
View ArticlePossibility to run Compiled Python Script (.pyc)?
@Nathan_Clero wrote: Hi everyone, I was wondering if there was a possibility to launch .pyc scripts in the Run Python script menu ? Or is there another way to do it ? Thanks,Nathan Posts: 1...
View ArticleKeyboard & Mouse status + Jumping OSnap points
@RIL wrote: Short questions: In Python Script, how to I access Mouse & Keyboard status, like finding out in a while loop if CTRL-key was pressed, or kept engaged, or released (same for ALT, TAB,...
View ArticleGear generator
@RBL wrote: Last year I came across a spur gear generator script that worked well in Rhino. I must have deleted it, and now cant seem to find it on line. If some one can point me in the right...
View ArticleRS ShootRay on trimmed srfs
@axa wrote: Hi list, I am trying out ShootRay() on some very simple geometry. It seems that the rays intersect the untrimmed srf, which is not what I expect. The green points are the ray origin, red...
View ArticleXform 4x4 matrix dizzyness -> transposing for export
@wynott wrote: I am trying to write a script that transposes block xforms so they relate to Unity's cooridnate system for my VR. Would really like to maintain firm single source of the model. Rhino is...
View ArticleDrawDirectionArrow
@Jess wrote: Hi, I want to display custom normal vectors on the vertices of a polyline - like the normals of a mesh are displayed with the _Dir command. I assume the DrawDirectionArrow method of the...
View ArticleEnable Frames in Mac Rhino
@Jenna_Fizel wrote: Is there away around the _getframe error on Mac as there is on Windows? I know this can be done in the Python editor settings in Windows but, as there is no built in editor on Mac,...
View ArticleBug : RS : unable to set Target independently of Camera in 2PointPerspective...
@Jarek wrote: Hi @Dale, As in the subject, any changes to Target do nothing, changes to Camera position only always drag the target.We need to be able to set the camera and keep the target in place or...
View ArticleClose Polyline Python/ rc.Geometry.Polyline
@horst wrote: Hi all, i want to make a simple recursion in Python. I have a polygon, i explode it, evaluate each segment and want to stroke a line(closedPolyline) throw the points. I didnt found a...
View ArticleBug in rs.AddHatch() if no pattern in file?
@Holo wrote: Hi, if I make a new document with no template and run a script that adds a hatch, just like the example, then no hatch is made since there are no hatch definitions in the file... so what...
View ArticleMethod for generation of geometry for optimal lightening holes for aircraft...
@saucerdesigner wrote: I'm hoping that there is a wheel that's already been invented.Since the fans will turn at thousands of RPM, and since it will be difficult to make perfectly balanced fans (using...
View ArticlePython scripting help
@djnelson75 wrote: This is more a python question than a Rhino question, as I am still learning python. So I have a list and I wanted to find the indexes for each item if they occur more than once....
View ArticleDisplay modes
@socken wrote: Hi,Does anyone sit on a script that changes the display modes using python?What I would like to achive is as the picture shows.The reason is to easily see where an open polysurface has...
View ArticleGH Python function returning None
@brobes05 wrote: Hello, this is a simple mistake since I have not been coding in python recently, but I have simple functions that are printing strings properly. However, when I ask the function to...
View ArticleIteration over non-sequence of type NoneType
@Jack_Zeng wrote: Hi all, I am trying to write a script to let python to help to get panels in a row.This script could be useful when you have thousands of panels.The strategy is to provide the first...
View Articlers.AddPipe() failure...?
@Helvetosaur wrote: Hi, I'm just trying to script something simple and I'm running into a problem with rs.AddPipe() if the two end radii are different, the pipes fail... If the two end radii are the...
View Article