Detach script with c ++

Detach script with c ++

anycganycgJ8A6A
Advocate Advocate
4,024 Views
44 Replies
Message 1 of 45

Detach script with c ++

anycganycgJ8A6A
Advocate
Advocate

hi

Nice to meet you

I have a problem

I have a 5000 object

That is attached..

I would like to detach with elements

I tested many detahel script

But all is failed or max freezz problem

So i found this link

 

C++ detach script

 

https://forums.cgsociety.org/t/c-detach-by-elements/1707338

 

If i use c++ , can i detach my objects

 

I dont know c++

 

Uf that is possible , can you help that ?

0 Likes
Accepted solutions (1)
4,025 Views
44 Replies
Replies (44)
Message 41 of 45

miauuuu
Collaborator
Collaborator

My numbers for the last code from Denis:

 

DETACH ... count:48600 time:94675 heap:437134480L
CREATE ... count:48600 time:941472 heap:56581836L

 

3ds Max 2020.

https://miauu-maxscript.com/
0 Likes
Message 42 of 45

denisT.MaxDoctor
Advisor
Advisor

Ha ha ha!!! My main machine is faster than my laptop...

 

I came back from a trip and tested on my main machine:

 

MXS:

DETACH ... count:48600 time:43255 heap:291744452L
CREATE ... count:48600 time:7035 heap:19624604L

 

C++(SDK)

count:48600 time:3526 heap:312L

 

Yes. Time in milliseconds 😊

 

0 Likes
Message 43 of 45

anycganycgJ8A6A
Advocate
Advocate
Can I ask you one question? If you detach while maintaining the map, will the speed increase tremendously?
0 Likes
Message 44 of 45

denisT.MaxDoctor
Advisor
Advisor

@anycganycgJ8A6A wrote:
Can I ask you one question? If you detach while maintaining the map, will the speed increase tremendously?

I'm pretty sure the speed should be the same or very close to the same.

0 Likes
Message 45 of 45

anycganycgJ8A6A
Advocate
Advocate
Wow good~
thank you
0 Likes