Attribute 'Intersect' of 'namespace#' object is read-only

If I’m not mistaken this script used to work. Perhaps something has changed since it successfully ran.
As always, any help is greatly appreciated. ~ David

my_emillio_05_18_22.py (4.7 KB)

Hello- hard to help without some idea what the script is meant to do and what the input should be…

-Pascal

The script draws a circle intersecting two concentric circles of given radii with given angles of intersection, e.g. r1 = 4.0, r2 = 5.0 angle1 = 35, angle2 = 45. When it ran successfully, the user would click on a spot in the viewport of a “guess” where the center of the intersecting circle might be.

The script as uploaded is chock full of errors - I cannot imagine it ever worked. I’ll see if I can figure it ourt.

-Pascal

Thanks. When I tried running it recently it puked at a “break” inside an if statement. I changed that by deleting the break and replacing it with “raise Exception” statement.
That fixed that issue. Then it puked due to “starad is undefined”. That was caused by lack of proper indentation in much of the code. I fixed that. Now I get the Attribute ‘Intersect’ on ‘namespace#’ object is read only error.

I’ll upload Emillio’s original.

emillio.py (4.2 KB)

Hi David, Pascal,

Here is that old script. :wink:

walden.py (4.4 KB)

It seems to work here, with the radii and angles you mentioned in the original discussion:

That is radii 10 and 11 and angles 30 and 25 degrees.

The script may fail with other values … don’t know :confused:.
Or the values may not have a geometric solution, in which case the script simply breaks, without any message … sorry.

What are the values that now make the script break ? :slight_smile:

Thanks, cheers.

EDIT:

Sorry, I see now that the values are 4, 5, 35, 45.

It still seems to work here :slight_smile:

… But the line passing throuh the circle center seems to be too short …

Anyway, here is the file:

walden-18-5-22.3dm (37.1 KB)

EDIT AGAIN:

I made the script draw a longer line.
Hope it helps … :slight_smile:

walden-b.py (4.4 KB)

1 Like

Yessir. It’s still working here. Thank you Emilio!

1 Like