Copy link to clipboard
Copied
Hi,
I'd like to create improved pie charts with effects like this without doing them by hand :
I'm bad at scripting in illustrator, but I'd like some effects like the slice's size variations and the text orientation.
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:
please let me know if you come across any other issues or bugs.
thanks again..
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
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)
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!
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 !
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.
Copy link to clipboard
Copied
Thanks, I added it. Tell me if it's alright the way it is.
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
‌cheers, code needs a little cleaning up. But I was happy with the result.
Copy link to clipboard
Copied
code needs a little cleaning up
+ indenting...but other than that, I love it!! great work
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?
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
and CarlosCanto‌, thanks for the praise. it means a lot coming from the **** himself. (i'll indent the code...)
Copy link to clipboard
Copied
**** = G u r u
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....
Copy link to clipboard
Copied
thanks, THAT means a lot to me