Bug #1030

MakeClothes error pop-up too small (OS X)

Added by Frogt (Forum User) over 2 years ago. Updated about 2 years ago.

Status:AcceptedStart date:05/21/2016
Priority:NormalDue date:
Assignee:Joel Palmius% Done:

0%

Category:MakeClothes
Target version:MakeHuman 1.1.2

Description

MakeClothes error pop-up messages appear to be too small on OS X.

This is with Blender 2.77a and MakeHuman 1.1 (although I think 1.0 is affected too).

To fix this issue on my machine:

In the directory /Applications/MakeHuman/1.1/Blender/Plugins/makeclothes I opened error.py in a text editor.

In class ErrorOperator I changed

width = 20+5*maxlen
height = 20+5*len(theErrorLines)

to

width = 400+5*maxlen
height = 400+5*len(theErrorLines)

I saved the file, re-ran the "Install Blender Plugins.command" and re-launched Blender:

screenshot_3_1463820696_MakeClothes_pop-up_window.png (10.5 KB) Frogt (Forum User), 05/21/2016 10:52 AM

screenshot_5_1463820848_pop-up_with_fix.png (12.7 KB) Frogt (Forum User), 05/21/2016 10:55 AM

1251
1253

History

#1 Updated by Joel Palmius over 2 years ago

  • Status changed from New to Accepted
  • Assignee changed from Thomas Larsson to Joel Palmius
  • Target version set to MakeHuman 1.1.1

#2 Updated by Rob Baer over 2 years ago

I wonder whether this is a general error in all Mac OS environments or whether it is screen resolution dependent? In other words, is changing 20 to 400 a universal fix or a local fix?

I wonder what screen resolution Frogt has? For this specific issue perhaps Francois has insight into the generality of the solution because I believe he said he has a quad HD screen. This becomes even more complicated in cross-platform environments where default fonts can vary as well as screen resolutions.

Going forward issues like this (and right panel width-estimation in MH itself) are begging robust general solutions.

#3 Updated by Frogt (Forum User) over 2 years ago

Hi Bob,

I'm using a macbook pro 15" with a retina display. The native resolution is: 2880x1800 pixels, and the scaled resolutions available are 1920x1200, 1680x1050, 1280x800 and 1024x640 pixels.

I was using the 1680x1050 (default) scaled resolution when I implemented the fix, but as an experiment I've tried switching to the highest resolution 2880x1800 and the amount of information in the error pop-up is still the same (i.e. the switch from 20 to 400 still works).

This issue could be related to retina/non retina screen technologies - unfortunately I don't have a non-retina device to test with.

#4 Updated by Rob Baer over 2 years ago

Thanks for reporting back and suggesting the fix. We'll try to do some testing.

#5 Updated by pl-lamballais (Forum User) over 2 years ago

Hi,
We're working also on Mac (using Mac Mini, running Mac OS 10.11.5). We don't notice such a problem. We have 21 inch screen.
For us, the whole content of the pop-up is visible.

#6 Updated by Joel Palmius about 2 years ago

  • Target version changed from MakeHuman 1.1.1 to MakeHuman 1.1.2

Also available in: Atom