oglop
06-05-2006, 01:33 AM
we have some different workstations,and when playblasting,we found some of the final avi has minor diffrence in size(very subtle,but visible),i am using the same codec,the same config in maya, i dunno why,finally i give the playblast job to a specified machine to avoid this issue.but new problem arise
{
string $playblast_path="d:/119/";
string $files[]=`getFileList -folder $playblast_path -filespec "*.mb"`;
print "\n";
for ($temp in $files){
file -f -type "mayaBinary" -o ($playblast_path+$temp);
;
DisplayShadedAndTextured;
pause -seconds 20;
// refresh -force;
string $no_component = `match "^[^\.]*" $temp`;
print ("playblasting "+$playblast_path+$no_component+".avi...\n");
playblast -format movie -filename ($playblast_path+$no_component+".avi") -forceOverwrite -clearCache 1 -viewer 0 -showOrnaments 1 -percent 100 -compression none -widthHeight 640 360;
}
DisplayWireframe;
displaySmoothness -full;
}
suppose i put my 100 maya mb scene files in d:/119/,and i thought my script will playblast them one by one ,yes it did,but the problem is that all of the procedural texture in my scene doesn't show up,in the playblast result where should be texture only shows shaded white,i tried to add pause command to my script,but it doesn't work.i also tried refresh -force,no luck either.
maybe the script has a higher priority than scene viewport refresh,u can reproduce this problem by using a checker board texture on a sphere.
any way to override this?
{
string $playblast_path="d:/119/";
string $files[]=`getFileList -folder $playblast_path -filespec "*.mb"`;
print "\n";
for ($temp in $files){
file -f -type "mayaBinary" -o ($playblast_path+$temp);
;
DisplayShadedAndTextured;
pause -seconds 20;
// refresh -force;
string $no_component = `match "^[^\.]*" $temp`;
print ("playblasting "+$playblast_path+$no_component+".avi...\n");
playblast -format movie -filename ($playblast_path+$no_component+".avi") -forceOverwrite -clearCache 1 -viewer 0 -showOrnaments 1 -percent 100 -compression none -widthHeight 640 360;
}
DisplayWireframe;
displaySmoothness -full;
}
suppose i put my 100 maya mb scene files in d:/119/,and i thought my script will playblast them one by one ,yes it did,but the problem is that all of the procedural texture in my scene doesn't show up,in the playblast result where should be texture only shows shaded white,i tried to add pause command to my script,but it doesn't work.i also tried refresh -force,no luck either.
maybe the script has a higher priority than scene viewport refresh,u can reproduce this problem by using a checker board texture on a sphere.
any way to override this?
