AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Identify surfaces extracted with polySeparate?
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

Identify surfaces extracted with polySeparate?
Rate this thread
 
65863
 
Permlink of this thread  
avatar
  • Total Posts: 2
  • Joined: 05 April 2012 11:06 AM

Hello,

I’m not able to identify (get) to two seperated surfaces when using polySeparate.

Here is my code

cmds.polyChipOff (MyFacesToExtch 1kft 1dup 0off 0)
cmds.polySeparateMyShapeNoders 1ch )

///result
[u’polySurface1’, u’polySurface2’, u’polySeparate4’]

(I seperated an object into 2 surfaces)
The operation works well, but I have some problem identifying which surface is which.

In 90% of the cases, the 2nd surface outputted (u’polySurface2) in this case, is the surface I extracted (the one I need) and the 1st one being the rest of the object (which I do not need). But with some objects, the result is the opposite, the first surface outputted being the one I need.

With that particular object, I have the same result if I manually extract the polygon(s) using
mesh > extract.

Does anyone have any workaround?

Essentially, what I need is to be able to get the surface highlighted in white when doing (mesh-extract) manually, and leave ( I delete ) the one highlighted in green.

any idea?
thanks in advance



Replies: 0