multithreading maxscript

multithreading maxscript

Anonymous
Not applicable
1,865 Views
3 Replies
Message 1 of 4

multithreading maxscript

Anonymous
Not applicable

Hi all,

 

I write this sugject because i am quit beginner in MAXSCRIPT.

 

I developped specific scripts to do some redundant actions. Finally I have to render a large amount of pictures to extract datas from them. The whole pipe is working but I want to improve the tool (less time to do this !). In .Net I can parrallellise functions but in maxscript I don't know how to do that.

 

I tried to launch .NET background worker but I have to render pictures by this script and so it's not working. (I can't use backburner farm because for each picture it takes less than 2s. Backburner farm can't help me)

 

I really need help for this.

 

Many thanks in advance.

0 Likes
1,866 Views
3 Replies
Replies (3)
Message 2 of 4

Swordslayer
Advisor
Advisor

There's just one max thread so the answer is you can't currently do that. While you can use background worker for something that can be calculated outside max, you can't invoke render function from multiple threads at once - well, technically you can but it will crash max.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi Vojtech,

 

Many thanks for your reply. I was in a wrong a way. However, i don't understand why the rendering in Multithreading capable and the maxscript not.

 

ThxRendering.jpg

0 Likes
Message 4 of 4

Swordslayer
Advisor
Advisor

That's a completely different situation, all the render meshes and other data from max are already passed to the renderer (a separate process, by the way) and it's the renderer that uses multiple cores. Also, running multiple threads doesn't automatically mean more than one core will be used.

0 Likes