PDA

View Full Version : untriangulate as script


moka.studio
02-09-2008, 03:49 PM
is it possible to invoke the untriangulate tool via a script, in order to bypass the popup dialogue? ( using the last used settings).
I need to untriangulate a lot of objects on the fly, I would like to assign a short cut and click away ( I use melt in this fashion)
thanks

ThirdEye
02-09-2008, 04:01 PM
I dunno about your question, but usually, and now it's automatic for me, i press the shortcut and then the enter key.

moka.studio
02-09-2008, 04:29 PM
right, that is what I do, but I then have to press enter to confirm the tolerance angle.
I would like to skip the last part,
I am having to do this on hundreds of polys.... and the mesh is a mess so I cannot select too many polys at once.

Sneaker
02-09-2008, 06:55 PM
Here is a script I made some time because of the same reason.
It also untrianguales selected polygons or all if not selected when you're not in polygon mode.
Can be a plus or distracting depending on your needs.

http://www.sneaker3.de/c4dscenes/Quick_Untriangulate.CSC

-Michael

moka.studio
02-10-2008, 02:05 PM
Here is a script I made some time because of the same reason.
It also untrianguales selected polygons or all if not selected when you're not in polygon mode.
Can be a plus or distracting depending on your needs.

http://www.sneaker3.de/c4dscenes/Quick_Untriangulate.CSC

-Michael

Thanks Sneaker,
is there a way to get the script to generate Ngons?

Sneaker
02-10-2008, 05:58 PM
modify those lines:

bc->SetData(MDATA_UNTRIANGULATE_NGONS,FALSE);
bc->SetData(MDATA_UNTRIANGULATE_ANGLE,FALSE);

for an angle of 0.5° to:

bc->SetData(MDATA_UNTRIANGULATE_NGONS,TRUE);
bc->SetData(MDATA_UNTRIANGULATE_ANGLE,0.5);

You could of course make a copy of the complete script rename it and have
both avialable with an icon or assigned key.

-Michael

moka.studio
02-11-2008, 09:46 AM
modify those lines:

bc->SetData(MDATA_UNTRIANGULATE_NGONS,FALSE);
bc->SetData(MDATA_UNTRIANGULATE_ANGLE,FALSE);

for an angle of 0.5° to:

bc->SetData(MDATA_UNTRIANGULATE_NGONS,TRUE);
bc->SetData(MDATA_UNTRIANGULATE_ANGLE,0.5);

You could of course make a copy of the complete script rename it and have
both avialable with an icon or assigned key.

-Michael

great! much appreciated

belushy
02-11-2008, 02:36 PM
why do you not select all polys via selection tool and then use the untriangulate funktion without problems you can convert the hole scene file to ngons

btw the script is very confortable but I#m able to convert only one single polyobject after another. even when i select via selectiontool polys only

CGTalk Moderation
02-11-2008, 02:36 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.