Penis sliders don't work for self defined penis

Discussions that concern the community rather than the makehuman software

Penis sliders don't work for self defined penis

Postby porky11 » Mon Jun 05, 2017 6:52 pm

I made a new penis proxy and it works as expected, but the sliders are disabled.
The sliders only work, when I use the adult_male_genitalia from the user contributed assets.
After editing the sliders, and changing back to my own penis proxy, the size has changed as expected.
What did I do wrong?
porky11
 
Posts: 25
Joined: Sun Jun 04, 2017 9:07 pm

Re: Penis sliders don't work for self defined penis

Postby joepal » Tue Jun 06, 2017 7:25 am

You need to add a tag to the descriptor file (the ".proxy" file).

The relevant piece of code for determining if a proxy is considered "with genitals" and should enable the sliders is this:

Code: Select all
    def hasGenitals(self):
        """
        Determines whether the human model has genitals geometry.
        Genitals geometry is present if the proxy (alt. topology)
        has the tag "genitals" assinged (convention).
        """
        if self.isProxied():
            if 'genitals' in self.proxy.tags or 'Genitals' in self.proxy.tags:
                return True
        return False


If you take a look in http://www.makehumancommunity.org/sites ... alia.proxy, line 7, you can see how it's supposed to look.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3591
Joined: Wed Jun 04, 2008 11:20 am

Re: Penis sliders don't work for self defined penis

Postby porky11 » Tue Jun 06, 2017 8:12 pm

Thanks, works now
porky11
 
Posts: 25
Joined: Sun Jun 04, 2017 9:07 pm


Return to Community discussions

Who is online

Users browsing this forum: MSN [Bot] and 1 guest