PDA

View Full Version : IsLayer Problem / Bug?



Martin
09-14-2010, 09:41 AM
Hi,

I have a problem with the isLayer Function.

I'm not sure where the root of the Problem is though.

Here is what I did when the Error Occured.

- I checked if a Layer exists
- If it didn't exist, I created it.
- Worked Fine
- If I run the Script again, it finds out, that the Layer already exists, and does not create the layer.

NOW

If I delete the Layer I just created with script and run the script again, it still tells me the layer exists, even though it was deleted.

Thanks
Martin

Steve Baer
09-18-2010, 04:35 PM
Hi Martin,
I'm looking into this and will hopefully have something fixed before the next WIP.
Thanks,
-Steve

Martin
09-20-2010, 07:59 AM
If you need my py code, let me know.
I would need your e-Mail for that though.

Thanks,
Martin

Steve Baer
09-20-2010, 04:38 PM
Found it. This will be fixed in the next WIP or you can get the script before then at
http://code.google.com/p/rhinopython/source/browse/trunk/scripts/rhinoscript/layer.py

-Steve