thanks for your help but i get syntax error with your code?
i was originally using this but it only selects half, it shouldnt it should slect all?
select "Fone1*";
maybe I explain my whole problem and you can comment better...
basically, run the below code, each profile I have to turn into a nurbs plane. whats the quickest way to do this?
thnkyou so much
jen
Please note, I am learning Mel, so the below code might be crazy but its working!
code,
////////////// 1
nurbsSquare -c 2 23 0 -nr 0 0 1 -sl1 46 -sl2 4 -sps 1 -d 3 -ch 1 ;
select -r bottomnurbsSquare1 topnurbsSquare1 ;
loft -ch 0 -u 1 -c 0 -ar 1 -d 1 -ss 1 -rn 0 -po 0 -rsn true "bottomnurbsSquare1" "topnurbsSquare1";
select -r loftedSurface1 ;
rename Fone1S;
select -r bottomnurbsSquare1 rightnurbsSquare1 ;
delete -ch bottomnurbsSquare1;
delete -ch rightnurbsSquare1;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "bottomnurbsSquare1" "rightnurbsSquare1" ;
delete rightnurbsSquare1;
select -r topnurbsSquare1 leftnurbsSquare1 ;
delete -ch topnurbsSquare1;
delete -ch leftnurbsSquare1;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "topnurbsSquare1" "leftnurbsSquare1" ;
delete leftnurbsSquare1;
select -cl ;
select -r bottomnurbsSquare1 ;
select -tgl topnurbsSquare1 ;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "bottomnurbsSquare1" "topnurbsSquare1" ;
delete topnurbsSquare1;
select -r bottomnurbsSquare1 ;
rename Fone1;
//////////////// 2
nurbsSquare -c 24.5 8.5 0 -nr 0 0 1 -sl1 17 -sl2 41 -sps 1 -d 3 -ch 1 ;
select -r bottomnurbsSquare1 topnurbsSquare1 ;
loft -ch 0 -u 1 -c 0 -ar 1 -d 1 -ss 1 -rn 0 -po 0 -rsn true "bottomnurbsSquare1" "topnurbsSquare1";
select -r loftedSurface1 ;
rename Fone2S;
select -r bottomnurbsSquare1 rightnurbsSquare1 ;
delete -ch bottomnurbsSquare1;
delete -ch rightnurbsSquare1;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "bottomnurbsSquare1" "rightnurbsSquare1" ;
delete rightnurbsSquare1;
select -r topnurbsSquare1 leftnurbsSquare1 ;
delete -ch topnurbsSquare1;
delete -ch leftnurbsSquare1;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "topnurbsSquare1" "leftnurbsSquare1" ;
delete leftnurbsSquare1;
select -cl ;
select -r bottomnurbsSquare1 ;
select -tgl topnurbsSquare1 ;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "bottomnurbsSquare1" "topnurbsSquare1" ;
delete topnurbsSquare1;
select -r bottomnurbsSquare1 ;
rename Fone2;
////////////////////////// 3
nurbsSquare -c 76 23 0 -nr 0 0 1 -sl1 46 -sl2 62 -sps 1 -d 3 -ch 1 ;
select -r bottomnurbsSquare1 topnurbsSquare1 ;
loft -ch 0 -u 1 -c 0 -ar 1 -d 1 -ss 1 -rn 0 -po 0 -rsn true "bottomnurbsSquare1" "topnurbsSquare1";
select -r loftedSurface1 ;
rename Fone3S;
select -r bottomnurbsSquare1 rightnurbsSquare1 ;
delete -ch bottomnurbsSquare1;
delete -ch rightnurbsSquare1;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "bottomnurbsSquare1" "rightnurbsSquare1" ;
delete rightnurbsSquare1;
select -r topnurbsSquare1 leftnurbsSquare1 ;
delete -ch topnurbsSquare1;
delete -ch leftnurbsSquare1;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "topnurbsSquare1" "leftnurbsSquare1" ;
delete leftnurbsSquare1;
select -cl ;
select -r bottomnurbsSquare1 ;
select -tgl topnurbsSquare1 ;
attachCurve -ch 0 -rpo 1 -kmk 1 -m 0 -bb 1 -bki 0 -p 0.1 "bottomnurbsSquare1" "topnurbsSquare1" ;
delete topnurbsSquare1;
select -r bottomnurbsSquare1 ;
rename Fone3;
//// stop select duplicate offset facade 2
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 Fone1S Fone2S Fone3S ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-4,46);
$randY=rand(-4,46);
$randZ=rand(-4,46);
move -r $randX $randY $randZ $selected[$x];
}
// stop select duplicate offset facade 3
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-32,40);
$randY=rand(-32,40);
$randZ=rand(-32,40);
move -r $randX $randY $randZ $selected[$x];
}
// stop select duplicate offset facade 4
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-9,38);
$randY=rand(-9,38);
$randZ=rand(-9,38);
move -r $randX $randY $randZ $selected[$x];
}
// stop select duplicate offset facade 5
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-12,38);
$randY=rand(-12,38);
$randZ=rand(-12,38);
move -r $randX $randY $randZ $selected[$x];
}
// stop select duplicate offset facade 6
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-10,20);
$randY=rand(-10,20);
$randZ=rand(-10,20);
move -r $randX $randY $randZ $selected[$x];
}
// stop select duplicate offset facade 7
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-13,20);
$randY=rand(-13,20);
$randZ=rand(-13,20);
move -r $randX $randY $randZ $selected[$x];
}
// stop select duplicate offset facade 8
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-9,32);
$randY=rand(-9,32);
$randZ=rand(-9,32);
move -r $randX $randY $randZ $selected[$x];
}
// stop select duplicate offset facade 9
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-9,59);
$randY=rand(-9,59);
$randZ=rand(-9,59);
move -r $randX $randY $randZ $selected[$x];
}
// stop select duplicate offset facade 10
refresh; pause -sec 1;
select -r Fone1 Fone2 Fone3 ;
duplicate -rr;
string $selected[]=ls -sl
;
for($x=0; $x<size($selected); ++$x){
$randX=rand(-8,102);
$randY=rand(-8,102);
$randZ=rand(-8,102);
move -r $randX $randY $randZ $selected[$x];
}