01-29-2016, 02:13 PM
Hello,
I'm having some trouble getting a simple script to run. The script would run the default sim, then the wavelet and be able to run as a shelf button or through the script editor.
Now in Max script it's as easy as:
But the Mel equivalent in Maya does not work:
or
It seems that the default and wavelet try to sim at the same time and I'm not sure how to go about solving it. They both run on their own perfectly but cannot together. I tried it in python as well.
Thanks,
-Kjell
I'm having some trouble getting a simple script to run. The script would run the default sim, then the wavelet and be able to run as a shelf button or through the script editor.
Now in Max script it's as easy as:
Code:
$FumeFX001.runsimulation 0
$FumeFX001.runsimulation 2
But the Mel equivalent in Maya does not work:
Code:
setAttr "fumeFXShape1.sSimOp" 0;
ffx_startSim "fumeFXShape1";
setAttr "fumeFXShape1.sSimOp" 2;
ffx_startSim "fumeFXShape1";
or
Code:
fumeFXcmd -runSimulation 0 "fumeFXShape1";
fumeFXcmd -runSimulation 2 "fumeFXShape1";
It seems that the default and wavelet try to sim at the same time and I'm not sure how to go about solving it. They both run on their own perfectly but cannot together. I tried it in python as well.
Thanks,
-Kjell