Thread View: adobe.scripting.indesign
2 messages
2 total messages
Started by nick
Fri, 26 Mar 2010 14:17
get background color
Author: nick
Date: Fri, 26 Mar 2010 14:17
Date: Fri, 26 Mar 2010 14:17
4 lines
1286 bytes
1286 bytes
can anyone please tell me how to read the background color of a textframe or rectangle using javascript thanks in advance
Re: get background color
Author: Jon Winters
Date: Sat, 27 Mar 2010 19:43
Date: Sat, 27 Mar 2010 19:43
18 lines
1974 bytes
1974 bytes
On Mar 26, 10:17 am, nick <pockl...@gmail.com> wrote: > can anyone please tell me how to read the background color of a > textframe or rectangle using javascript The object's .fillColor property has the details. Assuming you had a reference to the frame then you need to get the .fillColor of the reference. Samples are below... var frameRef = app.selection[0] ; var fillColorDetails = frameRef.fillColor ; var fillColorName = frameRef.fillColor.name ; var fillColorIsCMYK = (frameRef.fillColor.model == ColorModel.PROCESS) ; var fillColorValueArray = frameRef.fillColor.colorValue ; jon http://extendscript.blogspot.com/
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