I am confused with the age definition in the API Documentation. There seems to be an inconsistency. Which should I use if I want to manually change the age through a plugin with setAge()?
human.setAge(self, age)
Sets the age of the model. 0 if 12 years old, 1 is 70. To set a particular age in years, use the formula age_value = (age_in_years - 12) / (70 - 12).
While in the source code of guimacromodelling
- Code: Select all
def syncStatus(self):
...
if human.getAge() < 0.5:
age = 12 + ((25 - 12) * 2) * human.getAge()
else:
age = 25 + ((70 - 25) * 2) * (human.getAge() - 0.5)
Greets

J