GetBoolean in OSX rhinoPython


#1

Hi,

I’ve noticed a weirdness with the OSX implementation of GetBoolean.

If you have only one item in the itemlist it doesn’t seem to show at all, but it works fine with more than one item in the list.

For example:

srchType = rs.GetBoolean( "Options",  ("Full_Search", "Off", "On"), (True) )
print str( srchType )

Doesn’t work :frowning:

But:

   items = ("Include_Bells", "Off", "On"), ("Whistles", "Off", "On")
   srchType = rs.GetBoolean( "Options", items, (True, False) )
   print str( srchType )

Works fine. :thumbsup:

Not really a deal breaker, but perhaps it should go on a list…

cheers
Peter


(Alain Cormier) #2

Hi Peter,

That has been fixed in the code and hasn’t made its way to the mac yet so it should work fine next time a new IronPython plug-in is released on osx.


#3

Thanks Alain,

One more question:
will that IronPython update come through rhino/mcneel, or should I be looking for it separately?

cheers
Peter


(Alain Cormier) #4

It’ll be in the usual spot:
http://wiki.mcneel.com/rhino/mac/python

We’ll make an announcement here but eventually the latest plug-in will accompany every release of mac Rhino.