# list the renderlayers in your scene
renderLayers = cmds.ls (type='renderLayer')
layersOff = []
for rl in renderLayers:
renderable = cmds.getAttr(rl+'.renderable')
if renderable == 0:
layersOff.append(rl)
# print all layers that are turned off
for layer in layersOff:
print layer
#comment below out to delete the layer
#for layer in layersOff:
# cmds.delete(layer)
# end of python script
# ---------------------------------------------------------------------------------------------
I haven't tested it with a reference file, but I think that would
work. Give it a test
I hope it will work for you
regards
stefan
--
[ protector of penguins - abuser of pixels ]
-stefan
--
Steve I have found that hidden layers that don't show in the layer editors =
usually are visible in the relationship editor and can be deleted from ther=
e
________________________________
> Date: Wed=2C 9 Sep 2009 11:30:09 -0400
> Subject: [maya_he3d] Re: render layers from "reference files" are hidden
> From: stephe...@gmail.com
> To: maya...@googlegroups.com
>
> naw=2C that will only give you if its renderable or not
>
> what I'm looking for at the renderLayers that don't even show up in your =
renderLayer Editor.
>
>
=0A=
_________________________________________________________________=0A=
Microsoft brings you a new way to search the web. Try Bing=99 now=0A=
http://www.bing.com?form=3DMFEHPG&publ=3DWLHMTAG&crea=3DTEXT_MFEHPG_Core_ta=
gline_try bing_1x1=
seems pretty unlikely you'd be able to query that with MEL? Since it's a bu=
g and the hidden layers are of indeterminate status?
________________________________
> Date: Wed=2C 9 Sep 2009 14:29:51 -0400
> Subject: [maya_he3d] Re: render layers from "reference files" are hidden
> From: stephe...@gmail.com
> To: maya...@googlegroups.com
>
> I'm looking to get at them with MEL
>
>
>
>
=0A=
_________________________________________________________________=0A=
Insert movie times and more without leaving Hotmail=AE.=0A=
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=3DTXT_TAGLM_WL_HM_Tut=
orial_QuickAdd_062009=