Bollean works in software not in my script...

Bollean works in software not in my script...

slumberlander
Enthusiast Enthusiast
309 Views
1 Reply
Message 1 of 2

Bollean works in software not in my script...

slumberlander
Enthusiast
Enthusiast

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 {};

 

Accepted solutions (1)
310 Views
1 Reply
Reply (1)
Message 2 of 2

slumberlander
Enthusiast
Enthusiast
Accepted solution

LOL,

my script works fine. I was working with my polys isolated from the main scene using [crtl+1] and for some reason the multy bool operation was making them jump back in the main scene display. hahaha they were there all that time!  bottom line : I spend a day making those boolean one by one, and I do not need my script any more!! lol

0 Likes