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

script to copy color from object below

Community Beginner ,
Mar 23, 2015 Mar 23, 2015

Copy link to clipboard

Copied

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

Views

1.1K

Translate

Translate

Report

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

...

Votes

Translate

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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