How and where should I start the debug process about the dragging the slider to control the morphing? I have no idea so I start the process of debug from the makehuman.py. When run the app/human.py, I find some code related with core/events3d.py.
- Code: Select all
gender = min(max(gender, 0.0), 1.0)
if self.gender == gender:
return
self.gender = gender
self._setGenderVals()
self.callEvent('onChanging', events3d.HumanEvent(self, 'gender'))
- Code: Select all
class HumanEvent(Event):
def __init__(self, human, change):
self.human = human
self.change = change
def __repr__(self):
return 'event: %s, %s' % (self.human, self.change)
But I don't understand the link between the two pieces of code. What should I do to track the human.py code to HumanEvent code? Thanks in advance!