new measure

If your topic doesn't fit anywhere else, put it here.

Moderator: joepal

new measure

Postby Iburenko » Tue Apr 07, 2015 2:53 pm

Hi!

Could you please explain me how to add new measure to a model? I realised how to add a scroll bar, but I don't know how to specify place that I need to modify.

Thank you!
Iburenko
 
Posts: 8
Joined: Fri Mar 27, 2015 8:32 pm
Location: Moscow

Re: new measure

Postby duststorm » Tue Apr 07, 2015 4:16 pm

What do you mean with "measure"?
To make a slider have an effect, you need to attach targets to it.
We just published a great tutorial on targets: http://www.makehuman.org/blog/an_introd ... arget.html
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: new measure

Postby Iburenko » Thu Apr 09, 2015 2:32 pm

Thank you for a link!

But I'd like to add new sliders as in Modeling->Measure menu. How to add sliders for example for lower arm or upper arm and to see a length of measures?
Iburenko
 
Posts: 8
Joined: Fri Mar 27, 2015 8:32 pm
Location: Moscow

Re: new measure

Postby duststorm » Thu Apr 09, 2015 4:05 pm

Check the code of the measurement plugin, it's called "0_modeling_a_measurement.py".
With 388 lines of code it's very moderate in size. A good basic understanding of python should be enough.
You need to add a modifier (and the accompanying targets) and define the vertices on the human that should be measured along.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: new measure

Postby Iburenko » Fri Apr 10, 2015 6:13 pm

As far as I understood this lines in "0_modeling_a_measurement.py "
Code: Select all
humanmodifier.loadModifiers(getpath.getSysDataPath('modifiers/measurement_modifiers.json'), app.selectedHuman)
guimodifier.loadModifierTaskViews(getpath.getSysDataPath('modifiers/measurement_sliders.json'), app.selectedHuman, category, taskviewClass=MeasureTaskView)

adds a target and slider and it's working. But when I modify "0_modeling_a_measurement.py" trying to specify vertices all Measure menu disappears. It is not clear for me should I edit (and how) "modeling_modifiers.json", "modeling_modifiers_desc.json" and "modeling_sliders.json".

I think it's easy, but I don't see the solution.
Attachments
1.png
adding a slider without any effect
2.png
Measure menu disappears
Iburenko
 
Posts: 8
Joined: Fri Mar 27, 2015 8:32 pm
Location: Moscow

Re: new measure

Postby duststorm » Mon Apr 13, 2015 8:10 am

If the menu disappears that means you introduced a bug or syntax error in the code. Check the log or terminal output to get feedback.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: new measure

Postby simonkage » Tue Apr 18, 2017 5:10 pm

duststorm wrote:What do you mean with "measure"?
To make a slider have an effect, you need to attach targets to it.
We just published a great tutorial on targets: http://www.makehuman.org/blog/an_introd ... arget.html


Where did this tutorial go?
Was it updated somwhere else? I realy want to read it.

Many thanks.
simonkage
 
Posts: 1
Joined: Tue Apr 18, 2017 5:04 pm

Re: new measure

Postby joepal » Tue Apr 18, 2017 8:30 pm

Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4625
Joined: Wed Jun 04, 2008 11:20 am


Return to General discussions about makehuman

Who is online

Users browsing this forum: No registered users and 1 guest