I think as far as script is concerned the object is selected from that you can access and change either… Only the GUI has the change either fill/stroke by making it foremost… oh and the swapper
Thanx for the reply...
I am able to get the selected object but how can i access stroke/fill to find out which one is foremost.
I have to just find out which one is active.
1 person found this helpful
You can check the properties filled and stroked to see if the object has either, both or none… No such thing as foremost… If you are talking about the stacking of the appearance palette then you have NO access to that…
I had used these properties filled and stroked but it doesnt give me what i want...
Here is the sample code:
pathArt = new PathItem();
if(pathArt.filled == true)
pathArt.fillColor = colorValue;
else if(pathArt.stroked == true)
pathArt.strokeColor = colorValue;
value of both pathArt.filled and pathArt.stroked are true, it didnt tell me which one(stroke/fill) is active.
Anyways thanx for ur help i'll find any work around....