View Full Version : Mel Fluid emit From Fluid Problem
nathansims100 08-23-2009, 11:22 PM Im not sure if i'm going in the right direction in using mel to source the voxels from one and emit into another container.. Any help would be appreciated.
|
|
Aikiman
08-24-2009, 04:08 AM
At a glance it seems to be okay, though for a reason your script doesnt work. I dont think it is the get and set attrs though.
nathansims100
08-24-2009, 04:47 AM
yea..i was trying to see if first i could get density to emit into another container from its position but was extremely unsuccessful at getting it to work..
Aikiman
08-24-2009, 04:56 AM
The for loop condition is wrong and you need to include the resolution of your container to loop through.
int $Xres = fluid1.resolutionD;
int $Yres = fluid1.resolutionH;
int $Zres = fluid1.resolutionW;
for ($i=0; $i<$Xres; $i++)
for ($j=0; $j<$Yres; $j++)
for ($k=0; $k<$Zres; $k++)
CGTalk Moderation
08-24-2009, 04:56 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.