sp_helpThis is a featured page

/* sp_help.mel
This script may be freely distributed. Modify at your own risk.
Author: Dirk Bialluch (DirkBi@Software2000.de)
Creation date: 21.04.2000
Last update: 21.04.2000
*/
//
// Create UI
//
global proc sp_help ( int $function )
{
int $uiLabelWidth = 150;
int $uiInputWidth = 80;
int $uiWidth = $uiLabelWidth + $uiInputWidth + 220;
if ( `window -exists sp_help` )
deleteUI sp_help;
window -maximizeButton false -resizeToFitChildren false -title "Create Spiral Help" -iconName "Create Spiral Help" sp_help;

tabLayout -innerMarginWidth 5 -innerMarginHeight 5 -childResizable true sp_helpTab;
string $sp1_form = `formLayout -numberOfDivisions 100 "Create Spiral"`;
string $sp1_scroll = `scrollLayout -hst 16 -vst 16 -childResizable true -minChildWidth $uiWidth`;
columnLayout -adjustableColumn true -rowSpacing 6;
// create chain - 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 sp1_instructions;
setParent ..;
setParent ..;
setParent ..;
setParent ..;
setParent ..;
string $sp1_button = `button -label "Close" -command "deleteUI sp_help"`;
setParent ..;
string $sp2_form = `formLayout -numberOfDivisions 100 "About"`;
string $sp2_scroll = `scrollLayout -hst 16 -vst 16 -childResizable true -minChildWidth $uiWidth`;
columnLayout -adjustableColumn true -rowSpacing 6;
// about
frameLayout -label "About Create Spiral" -labelAlign "center" -cll false -lw $uiWidth -mh 3 -borderStyle "etchedIn" -bv true;
columnLayout -adjustableColumn true;
rowLayout -numberOfColumns 1 -cat 1 "left" 5;
text sp2_instructions;
setParent ..;
setParent ..;
setParent ..;
setParent ..;
setParent ..;
string $sp2_button = `button label "Close" -command "deleteUI sp_help"`;
// set form layouts
formLayout -edit -attachForm $sp1_scroll "top" 4 -attachForm $sp1_scroll "left" 4 -attachControl $sp1_scroll "bottom" 4 $sp1_button -attachForm $sp1_scroll "right" 4 $sp1_form;
formLayout -edit -attachNone $sp1_button "top" -attachForm $sp1_button "left" 4 -attachForm $sp1_button "bottom" 4
-attachForm $sp1_button "right" 4 $sp1_form;
formLayout -edit -attachForm $sp2_scroll "top" 4 -attachForm $sp2_scroll "left" 4 -attachControl $sp2_scroll "bottom" 4 $sp2_button -attachForm $sp2_scroll "right" 4 $sp2_form;
formLayout -edit -attachNone $sp2_button "top" -attachForm $sp2_button "left" 4 -attachForm $sp2_button "bottom" 4
-attachForm $sp2_button "right" 4 $sp2_form;
string $sp1_instructions =
"This script creates a spiral nurbs surface with optional construction history. You can\n" +
"create spirals along a fixed axis (xyz) or nurbs curves.\n" +
"\n" +
"To operate the tool on nurbs curves, select one or more curves before executing the script.\n" +
"\n" +
"Construction history will give you access to the spiral parameters after its creation.\n" +
"New attributes are added to the spiral surface node, that let you modify the geometry\n" +
"afterwards. In addition you can go into the 'spiralConstruction' group, created for each\n" +
"spiral surface, to alter the construction objects directly.\n" +
"\n" +
"If you start changing the shape of a construction nurbs curve, you may notice unwanted\n" +
"changes in the spiral geometry. In this case remove the construction history and use a wire,\n" +
"wrap or any other of Maya´s deformers to modify/animate the spiral further.\n" +
"\n" +
"Profile Radius\n" +
" Set the profile (nurbs circle) radius.\n" +
"\n" +
"Keep Profile Tangent\n" +
" Enable this option to keep the profile tangent to the spiral curve, if the spiral\n" +
" length and/or turns values are changed. This will avoid unwanted shearing.\n" +
"\n" +
"Spiral Start Radius\n" +
" Set the spiral start radius.\n" +
"\n" +
"Spiral End Radius\n" +
" Set the spiral end radius. This option is not available for user defined curves.\n" +
"\n" +
"Length\n" +
" Set the spiral length. This option is not available in the user interface for user\n" +
" defined curves, but you can access this attribute later on, if construction history is\n" +
" enabled. For fixed axes the value is measured in your current world space units, user\n" +
" defined curves have a relative value range from 0 to 1.\n" +
"\n" +
"Automatic Span Adjustment\n" +
" Calculate the number of spans for the spiral surface depending on the spiral turns value.\n" +
" The currently used formula to always guarantee a smooth surface is 'Turns * 8'. You may\n" +
" want to disable this feature, if the number of turns is going to be animated, because\n" +
" there can occur visual changes in the geometry, when an isoparm is inserted or removed.\n" +
"Spiral Spans\n" +
" Set the number of spans for the spiral surface.\n" +
"\n" +
"Axis\n" +
" Create the nurbs spiral along a fixed axis (xyz) or user defined nurbs curves.\n" +
"\n" +
"Rebuild Curve\n" +
" Enable this option to rebuild the construction nurbs curve uniformly.\n" +
"\n" +
"Curve Spans\n" +
" Set the number of spans used to rebuild the construction nurbs curve.\n" +
"\n" +
"Keep Construstion History\n" +
" Enable construction history to alter the spiral parameter afterwards.";
string $sp2_instructions =
"Create Spiral V2.0\n" +
"\n" +
"Programmed by Dirk Bialluch, 1998-2000\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 $sp1_instructions sp1_instructions;
text -e -label $sp2_instructions sp2_instructions;
tabLayout -e -selectTabIndex $function sp_helpTab;
showWindow sp_help;
}
// end of script


Posted Anonymously Latest page update: made by Anonymous , Sep 18 2006, 4:50 PM EDT (about this update About This Update Posted Anonymously Edited anonymously

1 word added
1 word deleted

view changes

- complete history)
Keyword tags: None (edit keyword tags)
More Info: links to this page

Anonymous  (Get credit for your thread)


There are no threads for this page.  Be the first to start a new thread.