Image Plane primary visibility

878 views
Skip to first unread message

Gary Jaeger

unread,
Feb 11, 2015, 1:26:35 PM2/11/15
to Maya Group
Dumb question but I’ve always wondered about this. How do I keep an ImagePlane visible in the viewport but NOT render?

Gary Jaeger // Core Studio
249 Princeton Avenue
Half Moon Bay, CA 94019
650 728 7060
http://corestudio.com

Sid

unread,
Feb 11, 2015, 2:10:24 PM2/11/15
to maya...@googlegroups.com
Don't image planes have a render stats drop down? You can turn off primary visibility, no?
> --
> You received this message because you are subscribed to the Google Groups "maya_he3d" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

ian zeigler

unread,
Feb 11, 2015, 2:14:30 PM2/11/15
to maya...@googlegroups.com
use a geometry plane, with image same ratio as your image, parented to the camera, with a Lambert shader, instead of a Maya image plane, could be one of many possible solutions.  

--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ian Zeigler
Principal

PHOTONIC
CREATIVE + VISUALIZATION


ian zeigler

unread,
Feb 11, 2015, 2:21:04 PM2/11/15
to maya...@googlegroups.com
i usually just toggle the image plane on and off right before a render, there a icon button on the viewport. 
imageplane toggle.JPG

Gary Jaeger

unread,
Feb 11, 2015, 2:23:09 PM2/11/15
to maya...@googlegroups.com
Right. But I don’t want to do that :)

Yeah I know about using a plane and no, for some reason they don’t have a Primary Visibility tag. So odd. I’m going to add it to the quick fix Maya list.

Gary Jaeger // Core Studio
249 Princeton Avenue
Half Moon Bay, CA 94019
650 728 7060
http://corestudio.com

ian zeigler

unread,
Feb 11, 2015, 2:25:24 PM2/11/15
to maya...@googlegroups.com
I know, odd stuff indeed!

--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gary Jaeger

unread,
Feb 11, 2015, 2:34:12 PM2/11/15
to maya...@googlegroups.com

Hafiizh

unread,
Feb 11, 2015, 9:28:48 PM2/11/15
to maya...@googlegroups.com
There's a -nip "No image plane" flag in the render command line if I remember correctly.

Gary Jaeger

unread,
Feb 11, 2015, 9:37:38 PM2/11/15
to maya...@googlegroups.com
damn right you are! -iip Ignore Image Planes

woot! thanks!

Gary Jaeger // Core Studio
249 Princeton Avenue
Half Moon Bay, CA 94019
650 728 7060
http://corestudio.com

Hafiizh

unread,
Feb 12, 2015, 12:35:12 AM2/12/15
to maya...@googlegroups.com
yep. -iip that's the one. sorry for the misinformation

Johan Schreurs

unread,
Feb 12, 2015, 10:06:16 AM2/12/15
to maya...@googlegroups.com

Great to learn about the -iip flag!

What I used to do is make two renders layers, one for previewing in the viewport and one for actual rendering, with a render layer overrides on the imagePlaneShape's Display Mode attribute.
That allows me to switch much quicker than constantly turning on / off the same attributes. I'm sort of abusing a render layer to do things a display layer can't do.  

If it's only to turn off the image plane the -iip flag looks a lot simpler. I've had good use for the "preview render layer" trick in other situations though.  I find it particularly useful when I'm rendering with linear workflow and I need to see my sRGB backplate in the viewport with the image plane's type set to "image" while I need to evaluate my render view with type set to "texture". 


Op woensdag 11 februari 2015 19:26:35 UTC+1 schreef Gary Jaeger:

Gary Jaeger

unread,
Feb 14, 2015, 6:24:05 PM2/14/15
to maya...@googlegroups.com
bah! doesn’t work with vray. Still need the Primary Visibility tag

Gary Jaeger // Core Studio
249 Princeton Avenue
Half Moon Bay, CA 94019
650 728 7060
http://corestudio.com

Stephen

unread,
Feb 14, 2015, 7:17:41 PM2/14/15
to maya...@googlegroups.com
You can also throw a set attr into the pre render MEL of the file    But I actually haven't tried that with vray.  

-=s 




Gary Jaeger

unread,
Feb 18, 2015, 6:02:14 PM2/18/15
to maya...@googlegroups.com
OK, so not being the savvy MEL guy, how would I write it so that ANY and ALL image places are off. Looks like the command is:

setAttr “imagePlaneShape1.displayMode” 0;

Thanks

Gary Jaeger // Core Studio
249 Princeton Avenue
Half Moon Bay, CA 94019
650 728 7060
http://corestudio.com

matt estela

unread,
Feb 18, 2015, 6:16:25 PM2/18/15
to maya...@googlegroups.com
Quick hacky way:

string $i; for ($i in `ls -type "imagePlane"`) { setAttr ($i+".visibility") 0; }

Ideally you'd record the visibility state of the image planes first, turn them all off, then in post render mel restore their state. That's an exercise left for the reader. :)



matt estela

unread,
Feb 18, 2015, 6:17:01 PM2/18/15
to maya...@googlegroups.com
Ah, following your lead, make that

string $i; for ($i in `ls -type "imagePlane"`) { setAttr ($i+".displayMode") 0; }

Gary Jaeger

unread,
Feb 18, 2015, 6:48:14 PM2/18/15
to maya...@googlegroups.com
Super sweet! that works. Thanks Matt! I’m learning...

OK, now I’m going to ask you to help me solve my other issue :)

Let’s say I have file paths set for low res textures:

sourceimages/lo/layer01.tif
sourceimages/lo/layer02.tif

and high res versions

sourceimages/hi/layer01.exr
sourceimages/hi/layer02.exr

Is there a way to swap all those in a mel command?

Gary Jaeger // Core Studio
249 Princeton Avenue
Half Moon Bay, CA 94019
650 728 7060
http://corestudio.com

matt estela

unread,
Feb 18, 2015, 7:30:00 PM2/18/15
to maya...@googlegroups.com
Heh, I charge by the hour you know. :)

Again, this is super brittle, will no doubt break stuff if you use it as is, but should get you started.

in pre render:

string $f; for ($f in `ls -type "file"`) { string $old = `getAttr ($f+".fileTextureName")`; setAttr -type "string" ($f+".fileTextureName") `substitute "lo" $old "hi"`;}

in post render:

string $f; for ($f in `ls -type "file"`) { string $old = `getAttr ($f+".fileTextureName")`; setAttr -type "string" ($f+".fileTextureName") `substitute "hi" $old "lo"`;}



in easier to read format:

string $f;
for ($f in `ls -type "file"`)
{
   string $old = `getAttr ($f+".fileTextureName")`;
   setAttr -type "string" ($f+".fileTextureName") `substitute "lo" $old "hi"`;
}




matt estela

unread,
Feb 18, 2015, 7:33:26 PM2/18/15
to maya...@googlegroups.com
(know that I feel dirty writing all this mel. Its long overdue that there was pre/post python in there too,  with an option to implicitly run 'from pymel import *' so you could do nice clean one-liners. And while I'm ranting, not one liners, but an expandable editor so you could actually write nice functions).


Gary Jaeger

unread,
Feb 18, 2015, 9:17:42 PM2/18/15
to maya...@googlegroups.com

On Wed, Feb 18, 2015 at 4:29 PM, matt estela <ma...@tokeru.com> wrote:
Heh, I charge by the hour you know. :)

Do you take paypal?!?!

Thanks Matt. I'll take a look at this tomorrow. Really appreciate the lesson.


--

Stephen

unread,
Feb 19, 2015, 10:19:01 AM2/19/15
to maya...@googlegroups.com
You'll want to Use match or tokenize to change the extension as well. 

-=s 




Reply all
Reply to author
Forward
0 new messages