Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5825

BUG: Python Script - rs.IsLine when a point is being tested

$
0
0

POSSIBLE BUG: Using Python Script. When using rs.IsLine(o) on a point object the following message is returned:

See the attached files. Run the script and select the line, arc, or curve and it runs great. Select the point and it errors on when testing it for a line object.

The immediate work around is to do an if statement and test to see if it is a point first and if it is then don’t test for a line. There are certain situations where I’m testing my selection for objects as lines only and now I have to do this band-aid and test for the point first.

Is this a BUG? If so, please fix!
RhinoScript IsX Errors.3dm (45.1 KB)
rhinoscriptisxerrors.py (952 Bytes)

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5825

Trending Articles