Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Heelo there !
i have a big bunch of poly i want to bollean difference with an object
As I have a lot of them, i piked up my braveness to script an automatisation (not my skill really).
the script works fine with stupid primitives but i have the classic bollean disaparence failure with my hi res poly...
although, if i hand do them one by one in the software the boolean work fine!
why is the PolyBoolOp working in the software and making bollean diaparence in my for loop?
here is my script, thank you so much for your time !!!
string $selectedPolys[] = `ls -sl`;
int $numPolys = size($selectedPolys);
if ($numPolys >= 2) {
for ($i = 0; $i < $numPolys - 1; $i++) {
//making copy of the poly i want to substract with and name it
string $lastPoly[] = `duplicate $selectedPolys[$numPolys - 1]`;
string $currentPoly = $selectedPolys[$i];
select -r $currentPoly;
// Appliquez l'opération booléenne de différence avec le dernier polygone
polyBoolOp -op 2 -classification 1 -ch 0 $currentPoly $lastPoly;
}
//select -cl;
} else {};
Solved! Go to Solution.