How posing/rigging a model from commandline without GUI

If you have problems understanding something or getting started, ask here

Moderator: joepal

How posing/rigging a model from commandline without GUI

Postby CFJH » Sun Jan 17, 2021 3:49 pm

Hi,
Currently I'm tinking about an animation with Povray with usage of a Makehuman models.
Here I need the ability to pose the model and apply (facial) expressions. While running within povray, it must be done via shell script (Linux).

Now I've the following ideas to implement this
1. Understanding, how is the posing/rigging working and reimplement this with the povray macro language. This will need lot of time to get a working version and I think, it will be really slow, while the povray macro language is not fast. (currently abdonned)

2. Using Makehuman itself (from command line) to apply the poses. Here I found out how to create an special pose, so I can set it from povray. (exporting the skeleton to a bvh-file. The last line in the bvh-file contains lot of values with "0.0". Changing this values will pose the model. The only problem is now to find out which values affects which part of the model).
My idea is now:
1. create the bvh-file with the pose (from povray or another external program)
2. start Makehuman (command line, no GUI)
3. load the model
4. apply the pose
5. export to wavefront obj

My question is now, how can I do the steps 2 to 5. I've read, that Makehuman is able to scripting but I don't get something working. With python programming I'm an totally novice.

Can someone give me a hint how to do this or is there another (easier) way ?
Jürgen
www.wetterstation-porta.info
CFJH
 
Posts: 14
Joined: Sat Nov 30, 2013 12:34 pm
Location: Germany

Re: How posing/rigging a model from commandline without GUI

Postby fake_Person » Sun Jan 17, 2021 8:22 pm

hmm im confused whats Povray?
14 year old deadbeat http://www.makehumancommunity.org/forum/ucp.php?i=profile&mode=signature#
User avatar
fake_Person
 
Posts: 111
Joined: Mon Nov 30, 2020 9:17 pm

Re: How posing/rigging a model from commandline without GUI

Postby CFJH » Sun Jan 17, 2021 8:41 pm

fake_Person wrote:hmm im confused whats Povray?


Povray is a (advanced) command line raytracer. I'm using it for nearly 30 years.
http://www.povray.org/
Jürgen
www.wetterstation-porta.info
CFJH
 
Posts: 14
Joined: Sat Nov 30, 2013 12:34 pm
Location: Germany

Re: How posing/rigging a model from commandline without GUI

Postby fake_Person » Mon Jan 18, 2021 7:02 pm

it matters what povray can it do? is it like blender where you can import files in there?
14 year old deadbeat http://www.makehumancommunity.org/forum/ucp.php?i=profile&mode=signature#
User avatar
fake_Person
 
Posts: 111
Joined: Mon Nov 30, 2020 9:17 pm

Re: How posing/rigging a model from commandline without GUI

Postby CFJH » Mon Jan 18, 2021 8:37 pm

I've already written a converter, which converts an wavefront obj to povray.
I've also tested a posing system within povray, but it will take too much work to get a fully functional version.

So my (maybe simple) question is

How can I apply a pose to a model and export it to wavefront from command line without user interaction ?
Jürgen
www.wetterstation-porta.info
CFJH
 
Posts: 14
Joined: Sat Nov 30, 2013 12:34 pm
Location: Germany

Re: How posing/rigging a model from commandline without GUI

Postby CFJH » Mon Jan 25, 2021 12:39 pm

CFJH wrote:So my (maybe simple) question is
How can I apply a pose to a model and export it to wavefront from command line without user interaction ?


No Hints ?
Is it really not possible to pose and export a model from command line within a batch/script ?
Jürgen
www.wetterstation-porta.info
CFJH
 
Posts: 14
Joined: Sat Nov 30, 2013 12:34 pm
Location: Germany

Re: How posing/rigging a model from commandline without GUI

Postby joepal » Mon Jan 25, 2021 2:29 pm

CFJH wrote:No Hints ?
Is it really not possible to pose and export a model from command line within a batch/script ?


There is no socket infrastructure for posing in place, so you're on your own regarding scripting for it.

Poses are defined in BVH files. BVH files are loaded on lines 146-171 here https://github.com/makehumancommunity/m ... es_pose.py

I guess you could extend the socket plugin (for example in the file https://github.com/makehumancommunity/c ... /modops.py) and add a method with similar functionality as in the pose plugin, and then use the cli tool (https://github.com/makehumancommunity/c ... master/cli) to call it with the filename of a BVH file you've produced elsewhere.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4469
Joined: Wed Jun 04, 2008 11:20 am

Re: How posing/rigging a model from commandline without GUI

Postby CFJH » Mon Jun 12, 2023 9:43 pm

Hi,

After a long time I have again dealt with the subject. The current status is that I can write the corresponding files for model, pose and expression from Povray. The problem now is to create the pose from these files.
At the moment I solve this with automatically generated mouse/keyboard events to operate Makehuman, but this runs very unreliable.

What I "only" need is a way to load a model (analogous to file->open) and then export it as wavefront-obj (entspr. file-export).
Is there a way to make this batch-capable (i.e. without GUI)?

I'm not familiar with python at all, I can't manage to reprogram anything in Makehuman myself.

Jürgen
CFJH
 
Posts: 14
Joined: Sat Nov 30, 2013 12:34 pm
Location: Germany

Re: How posing/rigging a model from commandline without GUI

Postby CFJH » Thu Aug 17, 2023 8:10 pm

No Hints :(

Is this really not possible :-(
Jürgen
www.wetterstation-porta.info
CFJH
 
Posts: 14
Joined: Sat Nov 30, 2013 12:34 pm
Location: Germany


Return to Newbies

Who is online

Users browsing this forum: No registered users and 1 guest

cron