trancor
07-31-2008, 11:51 PM
Hey, I've been getting pissed at maya when it comes to connecting a string of verts or edges on different sides of a hole together. I have no problem with setting up a script to merge verts together or to bridge edges sequentially. But I'm looking for a way to maintain the order I select components in an array.
I don't especially want to have scriptJobs running to update an array every time the selection changes due to there being a lot of things that could have me run into my same problem. Like if I use the border edge selection tool to select the edges I want to connect together. That will return the new selection in the same manor as I'm getting right now.
Heres the order I select something --
select -r caveMouth.e[1192] ;
select -tgl caveMouth.e[1148] ;
select -tgl caveMouth.e[1227] ;
select -tgl caveMouth.e[974] ;
select -tgl caveMouth.e[1365] ;
select -tgl caveMouth.e[1330] ;
select -tgl caveMouth.e[1295] ;
select -tgl caveMouth.e[1758] ;
select -tgl caveMouth.e[1703] ;
select -tgl caveMouth.e[1714] ;
select -tgl caveMouth.e[1725] ;
select -tgl caveMouth.e[1736] ;
select -tgl caveMouth.e[1747] ;
select -tgl caveMouth.e[1702] ;
Heres how the array `ls -sl -flatten` returns that --
caveMouth.e[974]
caveMouth.e[1148]
caveMouth.e[1192]
caveMouth.e[1227]
caveMouth.e[1295]
caveMouth.e[1330]
caveMouth.e[1365]
caveMouth.e[1702]
caveMouth.e[1703]
caveMouth.e[1714]
caveMouth.e[1725]
caveMouth.e[1736]
caveMouth.e[1747]
caveMouth.e[1758]
I tried using lsThroughFilter, thinkin -sort "byTime" might be what I want. But I keep getting errors with that command.
I don't especially want to have scriptJobs running to update an array every time the selection changes due to there being a lot of things that could have me run into my same problem. Like if I use the border edge selection tool to select the edges I want to connect together. That will return the new selection in the same manor as I'm getting right now.
Heres the order I select something --
select -r caveMouth.e[1192] ;
select -tgl caveMouth.e[1148] ;
select -tgl caveMouth.e[1227] ;
select -tgl caveMouth.e[974] ;
select -tgl caveMouth.e[1365] ;
select -tgl caveMouth.e[1330] ;
select -tgl caveMouth.e[1295] ;
select -tgl caveMouth.e[1758] ;
select -tgl caveMouth.e[1703] ;
select -tgl caveMouth.e[1714] ;
select -tgl caveMouth.e[1725] ;
select -tgl caveMouth.e[1736] ;
select -tgl caveMouth.e[1747] ;
select -tgl caveMouth.e[1702] ;
Heres how the array `ls -sl -flatten` returns that --
caveMouth.e[974]
caveMouth.e[1148]
caveMouth.e[1192]
caveMouth.e[1227]
caveMouth.e[1295]
caveMouth.e[1330]
caveMouth.e[1365]
caveMouth.e[1702]
caveMouth.e[1703]
caveMouth.e[1714]
caveMouth.e[1725]
caveMouth.e[1736]
caveMouth.e[1747]
caveMouth.e[1758]
I tried using lsThroughFilter, thinkin -sort "byTime" might be what I want. But I keep getting errors with that command.
