though all will have the same faces missing each time Would it happen to be an identical mesh as well?
In that case, you might have some luck with Offline Files, which will essentially record a set of commands, such as filling all holes in a particular fashion, and would then let you re-apply the offline file. It’s how Maya’s reference mechanism works, except you’ll have control over what and how reference edits are applied. The procedure might go something like this. 1. Reference the mesh 2. Fix it 3. Export Offline File Then, in a new file. 1. Reference the mesh 2. Apply Offline File Which could potentially be scripted into. 1. Select mesh 2. Create reference from selection 3. Apply Offline File 4. Import Reference Best, Marcus On 17 November 2014 13:45, Risto Jankkila <[email protected]> wrote: > Hi, > > seems that it will be very difficult to find a general solution for your > problem. From what I gathered it sounds like you need an arbitrary > procedure for each hole in the mesh. > > Anyway the Python API will probably be faster than the commands module. If > you decide to use API and run into any problems, I might be able to assist > you further. > > Cheers, > Risto > > > > > > > > > > > > > On Mon, Nov 17, 2014 at 3:00 PM, Marcus Ottosson <[email protected]> > wrote: > >> What happens when you select all faces, and run a Mesh -> Fill Hole? >> >> You could also do a Fill Hole, followed by Triangulate and then >> Quadrangulate to have it try and draw the appropriate edge loops in the >> filled up area. >> >> On 17 November 2014 12:25, sam williams <[email protected]> >> wrote: >> >>> my code is pretty huge now. Let me explain better: >>> >>> Imagine you have a character mesh, but with loads of random groups of >>> faces missing. My script fills in all the missing faces. However, its not >>> just as simple as plugging all the holes with a generic 'fill hole' tool or >>> something, each hole requires a particular set of bridging and merging >>> commands to fill the hole correctly, so that the edge flow matches up with >>> the surrounding geo. >>> >>> So my method was to literally create a long list which goes through each >>> hole in the geo and starts bridging certain edges to other edges then >>> merging them etc. I did it manually first so i knew the number of the >>> correct edge to merge with the other correct edge. >>> >>> I can leave my python script as it is now and it will work. But it is >>> quite slow and cannot easily be modified, because as you mentioned before >>> it will throw the mesh vertex/edge ordering out. >>> >>> I just thought there must be a smarter api way to do this. I was just >>> looking into that addPolygon method thing. As i am a bit slow, was trying >>> to understand how it could be integrated. >>> >>> thanks, >>> Sam >>> >>> ps. the script is required because i will have to repeat this same >>> process with many more meshes. though all will have the same faces missing >>> each time >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Python Programming for Autodesk Maya" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/python_inside_maya/293aef17-de13-419f-b6da-eb7e03536ba9%40googlegroups.com >>> <https://groups.google.com/d/msgid/python_inside_maya/293aef17-de13-419f-b6da-eb7e03536ba9%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> *Marcus Ottosson* >> [email protected] >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODOnrNjPdV-1%3DAZdJirF34aLVCBknYESqZ-Ot%3Dy9M6O4A%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODOnrNjPdV-1%3DAZdJirF34aLVCBknYESqZ-Ot%3Dy9M6O4A%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CA%2B5uDBYwvRJBRpYYpy4QQEV9B5ruNG8MtXoKO%2BVvPCqg%3DoAgJQ%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CA%2B5uDBYwvRJBRpYYpy4QQEV9B5ruNG8MtXoKO%2BVvPCqg%3DoAgJQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOB3pLrUgxigDcwVf4nAWufpGqU8Xw_DFr%2BDSkw_Mbjhiw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
