Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Image viewer?

4 REPLIES 4
Reply
Message 1 of 5
AlanEddie
1424 Views, 4 Replies

Image viewer?

Hi there,

What is the workflow for image reference in Maya... not imageplanes... just a window to flip between images in the scene just for reference.

In Soft I would often have the image window open just to keep track of image file "nodes" etc even just for sampling colours etc...

 

Thanks.

Alan Eddie
___________________
3d Animation/f/x /Design / Scripting
alaneddie.com
4 REPLIES 4
Message 2 of 5
AlanEddie
in reply to: AlanEddie

//I see you can load images into renderView...  maybe a little script would do... depending on which file node selected...

 

renderWindowEditor -edit -loadImage "//3d_design_1_w7/3d1/Prj_Primetime_Girl_3dHead/3dMaya_PTI_GirlHead/images/testComp.0124.iff" renderView;

 

 

Am I missing something obvious, I don't want to keep doing a file- view image, everytime I want to look at something...

Alan Eddie
___________________
3d Animation/f/x /Design / Scripting
alaneddie.com
Message 3 of 5
AlanEddie
in reply to: AlanEddie

So the options are :

1.create an imageplane 

2.look in uv editor

3.load into render view

4.Test texture

(Im thinking more about current state of the node more than viewing the original file...)

 

None are ideal... so I will script something for myself the time being... basically Im trying to replicate a larger "sample" view

of images a sequences that I can see clearly for reference. I really needed this in soft, in the property editor I could 

zoom in on the instances of images and do colour correction/versioning and see everything clearly and in detail.

I think this is a window Maya is missing, image viewer...

 

1.list of all file nodes in scene on left, image loads on rt when selected (using the test image code, to see live colour adjustment)

2.Needs a slider to check sequences etc also..

 

Maybe it's all integrated into a node preview window also... don't know, it just ain't working smooth now!

 

Thanks

A

 

 

 

Alan Eddie
___________________
3d Animation/f/x /Design / Scripting
alaneddie.com
Message 4 of 5
AlanEddie
in reply to: AlanEddie

//aed_ImageViewer (in progress) - so hotkeyed to c+s+i as it is something I  NEED! 

 

global proc aed_ImageViewer(){
if (`window -query -exists AED_IMAGEVIEWER_WIN`==1){deleteUI AED_IMAGEVIEWER_WIN;}
window -title "IMAGE VIEWER" -toolbox 1 -sizeable 0 -resizeToFitChildren 1 AED_IMAGEVIEWER_WIN;
columnLayout;
textField -w 550 -bgc 0.4 0.4 0.4 AED_TF_IMAGEVIEWER_PATH;

rowLayout -nc 2 -columnAttach2 "left" "left" -columnAlign2 "center" "center" AED_COL_IMAGEVIEWER;

columnLayout;
intSliderGrp -label "Size" -field true -columnWidth3 20 50 75 -minValue 25 -maxValue 100 -value 50
-changeCommand "aed_ImageViewLoad;"
AED_SIZE_IMAGEVIEWER;
string $r =` button -label "Refresh" -width 125 -command "deleteUI -window AED_IMAGEVIEWER_WIN; aed_ImageViewer;"`;
string $ok =` button -label "OK" -width 125 -command "deleteUI -window AED_IMAGEVIEWER_WIN;"`;
//define first.
textScrollList -h 450 -width 150 -allowMultiSelection false AED_TSL_IMAGEVIEWER;
//Add items.
//list shaders
string $mat[] = `ls -type "file"`;

//for every shader
for ($i in $mat) {textScrollList -e -append $i AED_TSL_IMAGEVIEWER;}
textScrollList -e -selectCommand "aed_ImageViewLoad();" AED_TSL_IMAGEVIEWER;
textScrollList -e -selectIndexedItem 1 AED_TSL_IMAGEVIEWER;

setParent..;
setParent..;
showWindow AED_IMAGEVIEWER_WIN;
aed_ImageViewLoad; // do a call to make sure one image is showing.
}
//--------------------------------------------------------------

global proc aed_ImageViewLoad(){
string $img;
string $image[] =`textScrollList -q -selectItem AED_TSL_IMAGEVIEWER`;

//string $image[] = `ls -sl`;
//test sequence or test single image.
/*
int $state = `getAttr($image[0]+".useFrameExtension")`;
if ($state == 0 ){//uses frame extension.
string $img = `getAttr($image[0]+".computedFileTextureNamePattern")`;
}
else{
string $img = `getAttr($image[0]+".fileTextureName")`;
}
*/
string $img = `getAttr($image[0]+".fileTextureName")`;


int $x = getAttr($image[0]+".outSize.outSizeX");//path
int $y = getAttr($image[0]+".outSize.outSizeY");//path

int $percent = `intSliderGrp -q -value AED_SIZE_IMAGEVIEWER`; // get percentage size to adjust image
float $scale = float($percent)/100;
int $xNew = int($x*$scale);
int $yNew = int($y*$scale);
//now remove and resize image.
setParent AED_COL_IMAGEVIEWER;

if(`symbolButton -exists AED_IMAGEPANE_IMAGEVIEWER` == true){deleteUI AED_IMAGEPANE_IMAGEVIEWER;}
symbolButton -w $xNew
-h $yNew
-image $img

AED_IMAGEPANE_IMAGEVIEWER; // load image.
textField -e -text $img AED_TF_IMAGEVIEWER_PATH;
window -e -rtf 1 -title ($x+" x "+$y + " (" +$xNew+"x"+$yNew+ ")" + $img) AED_IMAGEVIEWER_WIN;
//Nice auto resize hack.
int $posT = `window -q -topEdge AED_IMAGEVIEWER_WIN`;
int $posL = `window -q -leftEdge AED_IMAGEVIEWER_WIN`;
window -e -topLeftCorner $posT $posL AED_IMAGEVIEWER_WIN;
window -e -resizeToFitChildren 1 AED_IMAGEVIEWER_WIN;



// AEfileTextureViewCmd Test_IBL_image_file.fileTextureName;


}

Alan Eddie
___________________
3d Animation/f/x /Design / Scripting
alaneddie.com
Message 5 of 5
jill.ramsay
in reply to: AlanEddie

Hello Allan,

I think what you are looking for is currently covered by the Visor. Open the Visor and add a new tab, set the type to Disk. Browse to where your images are. That's it. You can have as many tabs like this as you like.

 

The Visor is definitely overdue for a makeover, but I think it will do what you are want in this instance.

 

Jill

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums