🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by jlevy Wed, 14 Jan 2009 18:44
Finding Parent Layer -- Script N00b
#2041
Author: jlevy
Date: Wed, 14 Jan 2009 18:44
11 lines
1012 bytes
Subject says it all; I'm a CS3 script n00b.

Anyway.

I've got a box, which is a Rectangle. I'd like to find what layer it's on, and see what that layer's 'visible' attribute is set to.

I've been scouring the documentation for hours trying to find my way back up the model, but I'm striking out.

Can someone give me a hand figuring out how to tell if the layer which contains my 'box' is visible or not?

Much appreciated.
Re: Finding Parent Layer -- Script N00b
#2042
Author: jlevy
Date: Wed, 14 Jan 2009 18:58
3 lines
757 bytes
Curses. I hate it when I do this. I found the answer after I posted ...

box.itemLayer ... DOH!
Re: Finding Parent Layer -- Script N00b
#2043
Author: Eric
Date: Wed, 14 Jan 2009 19:25
14 lines
983 bytes
For future ref, please specify which language you're working in too.

Applescript:

tell application "Adobe InDesign CS3" 
	tell active document 
		get visible of item layer of selection 
	end tell 
end tell



Not 100% about javascript. I think this would get the visibility of the very first page item in the document though...
var x = app.documents[0].pageItems[0].itemLayer.visible
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads