Hello Phil,
I am working with a group of real neckbeards along the same lines of generating random humans using MakeHuman. They came up with a simple solution and told me to be sure to share it here, because sharing is what we are all about. The solution requires some 3rd party tools I am sure you have or can easily obtain.
Download the file MH Crowd.ods attached to this posting.
Open Libre Office Calc (3rd party tool I spoke of above)
Tools -> Macros -> Organize Marcos and edit the Macro called Make_Crowd;
The file path needs to reflect the place you want 100 random models stored.
None of these have clothing and range in age and gender.
Need more than 100 change the 99 at the end of; For iCount = 0 To 99
- Code: Select all
Sub Make_Crowd
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
dim args1(2) as new com.sun.star.beans.PropertyValue
For iCount = 0 To 99
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:Calculate", "", 0, Array())
rem ----------------------------------------------------------------------
args1(0).Name = "URL"
rem Edit this line to your path
args1(0).Value = "file:///home/user/makehuman/v1/models/Random/random"+str(1000+iCount)+".mhm"
args1(1).Name = "FilterName"
args1(1).Value = "Text - txt - csv (StarCalc)"
args1(2).Name = "FilterOptions"
args1(2).Value = "32,,76,1,,0,false,true,true,false"
dispatcher.executeDispatch(document, ".uno:SaveAs", "", 0, args1())
Next iCount
end sub
Enjoy!