Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I have a problem with making a fluid density import plugin.

0 REPLIES 0
Reply
Message 1 of 1
eunsoo0623
292 Views, 0 Replies

I have a problem with making a fluid density import plugin.

Hi, I have a problem with making a fluid density import plugin.

 

I create a node and connect it and MFnFluid to load density and write to Fluid Node.

 

 

My problem is, 

 

when I called setDensityMode() after calling setSize(), getResolution(), getDimension(),

 

setSize() only works for larger than 2 frame (2, 3, 4, ...).

 

At less than 1 frame,

setSize() did not work appropriately when I call setDensityMode().

 

For example, when I call setSize(111, 222, 112, 111, 222, 112),

 

the grid resolution and size is (111, 222, 112) at larger than 2 frame.

 

But at less than 1 frame, the resolution is (5, 10, 5), but the size is (111, 222, 112).

 

 

So I called getSize() and getDimension() after setDensityMode() to re-check the resolution,

 

It makes maya dead (at getDimension()).  I mean, maya stops to work.

 

 

I don't know why the resolution is not properly changed at less than 1 frame.

 

I refered the source of Mantaflow's density loader (283-312).

 

https://bitbucket.org/mantaflow/mantaflow/src/2a4783d453a9/tools/maya/densityloader.cpp

 

 

Please help me!

 

 

 

 

 

 

 

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report