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

More complex pie charts

Explorer ,
Feb 07, 2015 Feb 07, 2015

Copy link to clipboard

Copied

Hi,
I'd like to create improved pie charts with effects like this without doing them by hand :

Sans titre - 1.png

I'm bad at scripting in illustrator, but I'd like some effects like the slice's size variations and the text orientation.

TOPICS
Scripting

Views

6.9K

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

Guide , Apr 28, 2016 Apr 28, 2016

Thanks heaps for the feedback.

the issue, as far as I can make out is due to me comparing to strings, I have now passed them as floats so it should work now.

the new version can be downloaded from here:

QwertyFly.com

please let me know if you come across any other issues or bugs.

thanks again..

Votes

Translate

Translate
Adobe
Guide ,
May 03, 2016 May 03, 2016

Copy link to clipboard

Copied

that's great, I'm glad it's working as expected for you now.

Please feel free to post here or email me if you find any other issues, or if you have any suggestions.

thanks again for letting me know about the issue just fixed and think it's fantastic that people are actually making use of this project.

I'd love to see an example or 2 of what is being produced by people with the aid of this code

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
Explorer ,
May 19, 2016 May 19, 2016

Copy link to clipboard

Copied

Question : would you mind if I showed your script on my website in the "Development" page ? Of course I would write "Coded by Quertyfly" with a link to your website. Is it okay ? (don't mind the test text at the bottom)

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
Valorous Hero ,
May 19, 2016 May 19, 2016

Copy link to clipboard

Copied

Wow, I am interested to know what techniques you used to get the effect in 0:44 part of your demo reel!

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
Explorer ,
May 19, 2016 May 19, 2016

Copy link to clipboard

Copied

In order not to get off topic I answered in a comment of my Youtube video.

But I'm glad you asked !

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
Guide ,
May 19, 2016 May 19, 2016

Copy link to clipboard

Copied

I would be happy for you to link to my website.

The script have been put there so others can make use of them.

As long as your download link sends people to my site.

Just to make sure that if it gets updated, your downloaders are getting the latest version.

any other questions or suggestions, feel free to ask.

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
Explorer ,
May 21, 2016 May 21, 2016

Copy link to clipboard

Copied

Thanks, I added it. Tell me if it's alright the way it is.

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
Community Expert ,
May 21, 2016 May 21, 2016

Copy link to clipboard

Copied

it all looks great!! the demo reel, the pie chart, and of course the pie maker script...great job guys.

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
Guide ,
Jun 06, 2016 Jun 06, 2016

Copy link to clipboard

Copied

LATEST

Looks smashing,

I'm chuffed you have featured my script, and love what you did with the example.

People will now ask that the script have a 3D option.

I may have a think on it and see if that would work.

Thanks again

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
Guide ,
Feb 25, 2015 Feb 25, 2015

Copy link to clipboard

Copied

‌cheers, code needs a little cleaning up. But I was happy with the result.

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
Community Expert ,
Feb 25, 2015 Feb 25, 2015

Copy link to clipboard

Copied

code needs a little cleaning up

+ indenting...but other than that, I love it!! great work

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
Guide ,
Feb 25, 2015 Feb 25, 2015

Copy link to clipboard

Copied

I was playing with ScripUI and put something together.

it's painful.

Whats with the ugly tabs?

also from what I understand I need to use bridgetalk to then get it to talk to illustrator.

this has me stumped.

I can get all the arrays and variables filled.

but then how do I target illustrator to start drawing the Pie?

pm.JPG

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
Valorous Hero ,
Feb 26, 2015 Feb 26, 2015

Copy link to clipboard

Copied

Hey that's pretty good!

So, for plain modal dialogs, not palette-type windows, you don't have to use bridgetalk, so it's much simpler.

The challenge is to make it flexible for users to add any number of pie sections and inner sections as well.

Those tabs, they are ugly but they work, which is all we can ask for these days

To work a script following a dialog box, in the case of the PieMaker, I started out using this:

// start of PieMaker -------------------------------------------------

    function UIWindow(){

        var resObj;

        var w = new Window('dialog', "PieMaker");

        var btn_g = w.add('group');

        var btn_ccl = btn_g.add('button', undefined, 'Cancel');

        var btn_ok = btn_g.add('button', undefined, 'OK');

        if(w.show() == 2){

            return null;

        } else {

            return resObj;

        }

    }

    var userChoice = UIWindow();

    if(userChoice == null){

        alert('Cancelled');

        return;

    }

// rest of PieMaker ------------------------------------------------

As you see, there are no elements yet in the dialog, but if they were there, I would add their contents as needed to the result object before the line which returns it from the UIWindow.

You pretty much got it, if you can think of a way to add arbitrary amounts of sections. I was thinking of making a main panel which can change its contents via a function which replaces the contents with data from a temporary data-object which lives inside the UIWindow function.

A listbox could be a display for the sections, and a panel next to it can be used to display properties of a selection of the listbox. Then a separate pop-up window can be used to show the whole thing in grid format as a convenience. And, to input and edit the records, yet another input dialog or panel section would be needed. And that's all you'd need! The properties panel could hold a bunch of styling options, etc, for the drawing and stuff.

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
Guide ,
Feb 27, 2015 Feb 27, 2015

Copy link to clipboard

Copied

‌

dialog, argh

I was using palette.

so it kinda working now.

thanks Silly-V‌

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
Guide ,
Feb 27, 2015 Feb 27, 2015

Copy link to clipboard

Copied

and CarlosCanto‌, thanks for the praise. it means a lot coming from the **** himself. (i'll indent the code...)

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
Guide ,
Feb 27, 2015 Feb 27, 2015

Copy link to clipboard

Copied

**** = G u r u

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
Guide ,
Feb 27, 2015 Feb 27, 2015

Copy link to clipboard

Copied

Kept trying to post, since this time yesterday, could not work out why it would not work.

some spam trap.

use of the word " g u r u " is not alowed....

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
Community Expert ,
Feb 27, 2015 Feb 27, 2015

Copy link to clipboard

Copied

thanks, THAT means a lot to me

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