Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

script to copy color from object below

Community Beginner ,
Mar 23, 2015 Mar 23, 2015

Hello,

I was wondering if there is a script to copy the fill color from an object below.

I need to transfer the fill colors from 300 different squares to 300 circles, how can I do this quickly?

Thanks

Pisistrato

TOPICS
Scripting
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Mar 25, 2015 Mar 25, 2015

Updated:

#target illustrator

function test(){

    function isSquare(item){

        if(item.pathPoints.length > 4){

            return false;

        }

        for(var i=0; i<item.pathPoints.length; i++){

            var thisPoint = item.pathPoints;

            if(Math.floor(thisPoint.leftDirection[0]) !=  Math.floor(thisPoint.rightDirection[0]) ||

                Math.floor(thisPoint.leftDirection[1]) !=  Math.floor(thisPoint.rightDirection[1]) ||

                Math.floor(thisPoint.leftDirecti

...
Translate
Adobe
Community Expert ,
Mar 23, 2015 Mar 23, 2015

Have you considered just using the Effect>Convert to Shape on the rectangles?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines