PDA

View Full Version : Help w/ Script


nubian
09-14-2005, 02:43 AM
i have this obvious script:

SelectEdgeRing; polySplitRing -ch on -weight 0.5 -absoluteWeight 0 -smoothingAngle 0 ;

how can i modify this script so that if one edge is selected it will do what the script above does (by selecting the edge ring then splitting it) and if multiple edges were selected it would execute by selecting the edge ring and splitting those rings down the middle.
please help.
thanks in advance

harmless
09-14-2005, 03:20 PM
string $edgeAry[] = `filterExpand -ex true -sm 32` ;

for ($edge in $edgeAry)
{
select -r $edge ;
SelectEdgeRing ;
polySplitRing -ch on -weight 0.5 -absoluteWeight 0 -smoothingAngle 0 ;
}
select -cl ;

nubian
09-15-2005, 01:39 AM
:bowdown:
thank you!

nubian
11-29-2005, 07:54 PM
sorry to bug you again or if anyone else know that if there's anyway to have it so that once you do a split the new edge ring you just created remain selected?

thanks in advance

harmless
11-29-2005, 08:31 PM
string $edgeAry[] = `filterExpand -ex true -sm 32` ;

for ($edge in $edgeAry)
{
select -r $edge ;
SelectEdgeRing ;
polySplitRing -ch on -weight 0.5 -absoluteWeight 0 -smoothingAngle 0 ;
}

// select -cl; // this clears the selection, but now it's commented out

nubian
11-29-2005, 08:39 PM
wow! thanks! :thumbsup:

CGTalk Moderation
11-29-2005, 08:39 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.