Hi all,
I have a question regarding the return function in a def():
i'm aware of this typical scenario:
def list():
stuff = []
stuff.append(0)
stuff.append(1)
return stuff
stuff = list()
print stuff
-----------> will result into [0, 1, 2, 3]
But what happens when in every list slot you want to save a vector, and a point and something else in order to return a list of stuff from a def back to the main() in order to reuse them later on on another def? is there a specific way to do that?
because it seems that if on every slot you place different things and try to reuse them outside the def then u get a lot of these type of messages 'list is not callable', or "Could not convert Rhino.Geometry.Vector 3d object to a Point 3d" in respect of returning a vector or a point, etc
any suggestions?
thanks
Pav


Reply With Quote
