Select to view content in your preferred language

Multiple export to jpg from one mxd

1278
2
02-10-2012 05:30 AM
ReneSchulenberg
Emerging Contributor
Hello,

I want to export 2 jpg from one mxd with a python script. For example: there are 3 layers in my mx (a,b and c). The first jpg I want to export with the layers a and b displayed; for the second with b and c. I know how to export jpg's using python, but how dow I tell the script which selection of layers I export? Does anybody have an idea?
Tags (2)
0 Kudos
2 Replies
DarrenWiens2
MVP Alum
I'd look at this help page. Particularly, the visible property: "Controls the display of a layer. This has the same effect as checking the check box next to the layer in the table of contents in ArcMap. If set to True, the layer will draw; if set to False, the layer will not be drawn. Not all layers support the visible property (for example, restricted Web service layers), so it is good practice to test for this ahead of time using the supports method."
0 Kudos
ReneSchulenberg
Emerging Contributor
thanks, that is exactly what I was looking for!
0 Kudos