I need some string return value like that
"c:/test/a.iff"
(ie. it is a last rendered image (single frame).)
the most important is to get its file extension.
I think there should anotherway to check
defaultrenderer.fileextension if 1-2-7-8 ... etc.
//renderWindowRenderCamera snapshot renderView "image";
simple way query the image dir get the filename and get the ext then u can get the full path isit ??
getFileList is the only way ?
mm.
I thought if there is a command with queriable paramater that returns this.
and I investigated that command now.
renderSettings -firstImageName
turns only file and extension.
I think I can catch something from here.
thanks
here I finally get extension only
also
string $rndEx[0]
is the name of file only
string $rndEx[]=(renderSettings -firstImageName);
$renderExtension=fileExtension($rndEx[0]);//these couple of lines gets only extension "ie. iff"
i hope this will make sence
CODE
global proc get_where_is_img()
{
string $rndEx[]=(renderSettings -firstImageName);
//here you can get the current projectpath
//and then projectpath/image/$rndEx[0] is ur image name isit ??
string $get_cur_img_dir=workspace -q -dir;
$renderExtension=$get_cur_img_dir +"images/"+$rndEx[0];
print ($renderExtension+"\n");
}
get_where_is_img;