Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 1 03-03-2006 , 01:22 PM
skywola's Avatar
Registered User
Join Date: Jan 2004
Location: Tempe, Arizona, USA
Posts: 224

Size Of A Window

How to control the size of a window . . .

string $window = `window -title "Window Sizing"`;
columnLayout -adjustableColumn true;
button -label "Do Nothing";
button -label "Close" -command ("deleteUI -window " + $window);
setParent ..;
showWindow $window;

// Here is the code that controls the size . .
window -edit -widthHeight 228 156 $window;


"The Sage as an Astronomer: If you still see the stars as something above you, you lack the eye of knowledge." Friedrich Nietzsche
# 2 25-03-2006 , 02:16 PM
Registered User
Join Date: Oct 2004
Posts: 27
actually there are 2 easier ways to do this, well one, firstly

string $myWin = `window -width 100 -height 250 -sizeable 1 coolWindow`;
showWindow $myWin;

This saves u editing the window.

Secondly create this window and drag it to a size you want. Now in the script editor enter:

window -q -wh $myWin;

This will spit out the size that u have manually resized the window to, just enter these into the first bit of code. (We could have used the -wh flag in the first example, -wh 100 250)

AnDy

# 3 25-03-2006 , 05:37 PM
skywola's Avatar
Registered User
Join Date: Jan 2004
Location: Tempe, Arizona, USA
Posts: 224
Briefer code = better and clearer . . . . hats off to you . . .


"The Sage as an Astronomer: If you still see the stars as something above you, you lack the eye of knowledge." Friedrich Nietzsche
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads