02-02-2016, 11:35 AM
kjellstrode Wrote:This is a great workaround and it works but it just runs the post script over and over.My bad. Should be something like:
Code:
global int ffx_seq_sim_flag = 0;
proc ffx_mel_PostSim( string $node )
{
global int ffx_seq_sim_flag;
if ( ffx_seq_sim_flag==0 ) {
ffx_seq_sim_flag = 1;
evalDeferred("pause -sec 10;fumeFXcmd -runSimulation 2 \"fumeFXShape1\";");
}
}-----
kjellstrode Wrote:For Example in MelI can confirm that. Wow. Will look into that. Thx.
Code:FumeFXcmd -runSimulation 0 "fumeFXShape1";
FumeFXcmd -makePreview 1 10 5 0 "fumeFXShape1";
This works great, runs sim and then a preview
With Python
Code:import maya.cmd as mc
mc.fumeFXcmd( "fumeFXShape1", runSimulation=0)
mc.fumeFXcmd( "fumeFXShape1", makePreview=[1, 10, 5, 0)]
runs the preview first and then the sim which is no good
Regards,
Dino Malpera
Dino Malpera

