# Some Help On Selectcontiguousedges Needed

**URL:** https://forum.highend3d.com/t/some-help-on-selectcontiguousedges-needed/2441
**Category:** Maya
**Tags:** mel
**Created:** [February 18, 2007, 9:31pm UTC](https://forum.highend3d.com/t/some-help-on-selectcontiguousedges-needed/2441 "2007-02-18T21:31:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [February 18, 2007, 9:31pm UTC](https://forum.highend3d.com/t/some-help-on-selectcontiguousedges-needed/2441/1 "2007-02-18T21:31:53Z")

</div>

In my script i need to do this :

string $edges[] = `filterExpand -ex 1 -sm 32`;  
SelectContiguousEdges $edges[0];

- but this does not work.

What i need is to use the SelectContiguousEdges command but without selecting an edge first.

Why ?

Because i need the current selection.

Any ideas?

Peace

---

<div class="post-metadata">

### Author: ![kurianos3d](https://forum.highend3d.com/user_avatar/forum.highend3d.com/kurianos3d/32/55947_2.png) [@kurianos3d](https://forum.highend3d.com/u/kurianos3d)
#### Post date: [February 19, 2007, 9:15am UTC](https://forum.highend3d.com/t/some-help-on-selectcontiguousedges-needed/2441/2 "2007-02-19T09:15:49Z")

</div>

if you select and then apply this script its working fine

CODE  
global proc test\_script()  
{  
&nbsp;&nbsp;&nbsp;&nbsp;string $edges[] = `filterExpand -ex 1 -sm 32`;  
&nbsp;&nbsp;&nbsp;&nbsp;SelectContiguousEdges $edges[0];   
}  
test\_script;

and i am geting this result also

// Result: pSphere1.e[240:259]

and what you want .. with out select a edge u want to get the result ???

Then i dont think so

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [February 19, 2007, 11:40am UTC](https://forum.highend3d.com/t/some-help-on-selectcontiguousedges-needed/2441/3 "2007-02-19T11:40:27Z")

</div>

Yeah, i need to make a loop without anything selected.

Something like

SelectContiguousEdges $edge;

---

<div class="post-metadata">

### Author: ![kurianos3d](https://forum.highend3d.com/user_avatar/forum.highend3d.com/kurianos3d/32/55947_2.png) [@kurianos3d](https://forum.highend3d.com/u/kurianos3d)
#### Post date: [February 19, 2007, 12:37pm UTC](https://forum.highend3d.com/t/some-help-on-selectcontiguousedges-needed/2441/4 "2007-02-19T12:37:43Z")

</div>

QUOTE(STAVREV @ 02/19/07, 05:10 PM) [snapback]260412[/snapback]  
Yeah, i need to make a loop without anything selected.

Something like

SelectContiguousEdges $edge;

but where is the input ??? but i hope this like u can do it .. oru our guys maybe have another good idea   
CODE  
string $my\_edgename="pSphere1.e[237]";  
select -r $my\_edgename;  
SelectContiguousEdges $my\_edgename
