face_off opened this issue on Mar 28, 2005 ยท 22 posts
an0malaus posted Tue, 29 March 2005 at 6:29 AM
Any chance that CurrentActor() is returning None, as in nothing selected? You might need to debug it by assigning the function calls to intermediate variables and printing them out. Assuming, of course, that doing so doesn't make the problem vanish ;-) Also, if you're doing a print, it should be able to handle the form: print "ActorName = ", poser.Scene().CurrentActor().Name() without the str() evaluation and string catenation. print can print tuples and dictionaries as well as functions evaluating to None. The inherent assumption (regardless of whether it's a P6 bug or not) of the combined statement is that none of the Scene(), CurrentActor() or Name() evaluations is going to return something that can't be evaluated by the next bit to be parsed - i.e. can't evaluate Name() method if CurrentActor() instance returns None.
Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.