• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting Issue fumeFXcmd
#4
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 Mel

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
I can confirm that. Wow. Will look into that. Thx.
Regards,
Dino Malpera
  Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)