(IMaxKrakatoaParticleInterface) create_stream crashes max

Discussion and Support of Krakatoa Volumetric Particle Rendering, Manipulation and Management Toolkit
ivanisavich
Posts: 14
Joined: Thu Nov 01, 2012 11:41 am

(IMaxKrakatoaParticleInterface) create_stream crashes max

Postby ivanisavich » Sun Apr 01, 2018 2:16 pm

I'm trying to access a KrakatoaParticleStream using the SDK.

I can create my IMaxKrakatoaParticleInterface fine but if I call create_stream on an invalid frame (ie, a frame where the corresponding .prt file doesn't exist), max crashes. It's worth noting that on valid frames the stream is created without a problem.

If I call 'FranticParticles.GetPRTObjectIStream' on the node using maxscript at the problem frame, I get an appropriate error telling me the .prt file doesn't exist. Is there an SDK function I can use to check for existing prt files that I can couch the call to create_stream inside?

Currently my workaround is to check if the stream can be created using the above maxscript function first, and if that completes without error then I create the stream in C++, but that's not ideal.

Evan Spearman
Posts: 62
Joined: Wed Jan 20, 2016 2:25 pm

Re: (IMaxKrakatoaParticleInterface) create_stream crashes max

Postby Evan Spearman » Mon Apr 02, 2018 5:37 pm

Hi ivanisavich.

That definitely sounds like a bug, so I've logged it in our internal issue tracker.
I'm not aware of any other API call you might be able to use for a better workaround.
Evan Spearman
Developer
Thinkbox Software


Return to “Thinkbox Software - Krakatoa for 3ds Max”

Who is online

Users browsing this forum: No registered users and 4 guests