Hello,
I'm trying to set a default argument to be a function result.
So, in the example below I'm trying to add index to *myItem* but having
index default to number of items in *myListOfItems*
class myItem:
def __init__(self, index = myListOfItems.itemCount(self)):
self.index =
Hi Shahar,
http://codepad.org/SfAJRisU
I've added an example here for you to mull over. Hope this helps
-Dave
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe