cw_help
/* cw_help.mel
This script may be freely distributed. Modify at your own risk.
Author: Dirk Bialluch (DirkBi@Software2000.de)
Creation date: 11.03.2000
Last update: 15.10.2000
*/
//
// Create UI
//
global proc cw_help ( int $function )
{
int $uiLabelWidth = 150;
int $uiInputWidth = 80;
int $uiWidth = $uiLabelWidth + $uiInputWidth + 220;
if ( `window -exists cw_help` )
deleteUI cw_help;
window
-maximizeButton false
-resizeToFitChildren false
-title "Create Wire Help"
-iconName "Create Wire Help" cw_help;
tabLayout -innerMarginWidth 5 -innerMarginHeight 5 -childResizable true cw_helpTab;
string $cw1_form = `formLayout -numberOfDivisions 100 "Create Wire"`;
string $cw1_scroll = `scrollLayout -hst 16 -vst 16 -childResizable true -minChildWidth $uiWidth`;
columnLayout -adjustableColumn true -rowSpacing 6;
// create wire tool - instructions
frameLayout
-label "Instructions"
-labelAlign "center"
-cll false
-lw $uiWidth
-mh 3
-borderStyle "etchedIn"
-bv true;
columnLayout -adjustableColumn true;
rowLayout
-numberOfColumns 1
-cat 1 "left" 5;
text cw1_instructions;
setParent ..;
setParent ..;
setParent ..;
setParent ..;
setParent ..;
string $cw1_button = `button
-label "Close"
-command "deleteUI cw_help"`;
setParent ..;
string $cw0_form = `formLayout -numberOfDivisions 100 "About"`;
string $cw0_scroll = `scrollLayout -hst 16 -vst 16 -childResizable true -minChildWidth $uiWidth`;
columnLayout -adjustableColumn true -rowSpacing 6;
// about - instructions
frameLayout
-label "About Motion Control"
-labelAlign "center"
-cll false
-lw $uiWidth
-mh 3
-borderStyle "etchedIn"
-bv true;
columnLayout -adjustableColumn true;
rowLayout
-numberOfColumns 1
-cat 1 "left" 5;
text cw0_instructions;
setParent ..;
setParent ..;
setParent ..;
setParent ..;
setParent ..;
string $cw0_button = `button
-label "Close"
-command "deleteUI cw_help"`;
// set form layouts
formLayout -edit
-attachForm $cw1_scroll "top" 4
-attachForm $cw1_scroll "left" 4
-attachControl $cw1_scroll "bottom" 4 $cw1_button
-attachForm $cw1_scroll "right" 4
$cw1_form;
formLayout -edit
-attachNone $cw1_button "top"
-attachForm $cw1_button "left" 4
-attachForm $cw1_button "bottom" 4
-attachForm $cw1_button "right" 4
$cw1_form;
formLayout -edit
-attachForm $cw0_scroll "top" 4
-attachForm $cw0_scroll "left" 4
-attachControl $cw0_scroll "bottom" 4 $cw0_button
-attachForm $cw0_scroll "right" 4
$cw0_form;
formLayout -edit
-attachNone $cw0_button "top"
-attachForm $cw0_button "left" 4
-attachForm $cw0_button "bottom" 4
-attachForm $cw0_button "right" 4
$cw0_form;
string $cw1_instructions =
"This tool creates nurbs tubes or paint effect strokes along poly edges and nurbs\n" +
"isoparms. Nurbs spheres can be placed at both edge ends and isoparm intersections.\n" +
"\n" +
"You can use this tool to render a shaded wireframe representation of your scene,\n" +
"including shading, shadows, reflections, motion blur, DOF, ...\n" +
"\n" +
"Construction history will give you access to tube/sphere radius, paint effects\n" +
"brush size and the nurbs surface resolution. Only wire objects derived from nurbs\n" +
"surfaces will react to deformation of the original surface.\n" +
"\n" +
"\n" +
"Nurbs Surface Direction\n" +
" Create geometry for u, v or both isoparm directions.\n" +
"\n" +
"Isoparm Density U/V\n" +
" This factor increases/decreases the amount of nurbs surface isoparms used for\n" +
" wire creation. A value of 1 uses the original amount of spans.\n" +
"\n" +
"Create Tubes\n" +
" Enable nurbs tube generation along isoparms/edges.\n" +
"\n" +
"Tube Radius\n" +
" Set the nurbs tube radius.\n" +
"\n" +
"Tube Sections\n" +
" Set the nurbs tube profile subdivisions.\n" +
"\n" +
"Create Spheres\n" +
" Enable nurbs sphere generation at poly vertices and isoparm intersections.\n" +
"\n" +
"Sphere Radius\n" +
" Set the nurbs sphere radius.\n" +
"\n" +
"Sphere Sections\n" +
" Set the nurbs sphere sections.\n" +
"\n" +
"Sphere Spans\n" +
" Set the nurbs sphere spans.\n" +
"\n" +
"Create Paint Effects\n" +
" Enable Paint Effects generation along isoparms/edges.\n" +
"\n" +
"Set Brush Size\n" +
" Override the template brush size settings.\n" +
"\n" +
"Global Scale\n" +
" Set brush global scale.\n" +
"\n" +
"Brush Width\n" +
" Set brush width.\n" +
"\n" +
"Screenspace Width\n" +
" Enable screenspace width to render Paint Effect strokes at equal size\n" +
" independent from the camera distance.\n" +
"\n" +
"Resolution Independent\n" +
" If 'Screenspace Width' is enabled you can use this function to render\n" +
" strokes at a fixed width, even if you change the image resolution in the\n" +
" Render Globals.\n" +
"\n" +
"Set Brush Color 1\n" +
" Enable this checkbox to override brush color 1. This can be useful, if you\n" +
" want to use the default brush to render simple wireframe lines.\n" +
"\n" +
"Brush Color 1\n" +
" Clicking on the color swatch will open the color picker to choose the brush\n" +
" color.\n" +
"\n" +
"Select Brush Preset\n" +
" Open the Visor to select a brush preset.\n" +
"\n" +
"Reset Template Brush\n" +
" Reset the template brush to the default settings.";
string $cw0_instructions =
"Create Wire V1.21\n" +
"\n" +
"Programmed by Dirk Bialluch, 2000\n" +
"Thanks must go to Duncan Brinsmead for some help with the Paint Effects integration.\n" +
"\n" +
"This script may be freely distributed.\n" +
"Modify at your own risk.\n" +
"\n" +
"Email: 'DirkBi@Software2000.de'\n" +
"Homepage: 'http://dirk-bialluch.mayaring.com'";
text -e -label $cw1_instructions cw1_instructions;
text -e -label $cw0_instructions cw0_instructions;
if ( $function == 0 )
$function = 2;
tabLayout -e -selectTabIndex $function cw_helpTab;
showWindow cw_help;
}
// end of script
There are no threads for this page.
Be the first to start a new thread.