Cutting a circle

Copy link to clipboard
Copied
Hi all,
I need to make shapes like this based on a value for graph purposes - usually I would just create a cutting shape based on trig (this shape representing around 60%) and subtract it from the path - I have about 30 graphs to do and I need to base it on a variable, and I want to use script - I'm sure there must be a better way, and I'm hoping you guys have the answer.
Thanks in advance
Dave
Explore related tutorials & articles
Copy link to clipboard
Copied
YOU ARE MY HERO. Thank you, thank you, thank you. this does exactly what I need. Thank you Thank you
Copy link to clipboard
Copied
I LOVE the idea of this script, but it is not running correctly for me. It seems to be choking on the line of code for:
center = app.activeDocument.activeView.centerPoint;
I keep getting an error that "activeView.centerPoint" is not supported.
Is there a fix available for this?
I'm running InDesign CC 2017 on Windows.
Please and Thanks in advance!
Theresa
Copy link to clipboard
Copied
Hi Theresa,
the linked script in answer 27 is for Adobe Illustrator and not for InDesign.
activeView is an Illustrator document property:
https://www.indesignjs.de/extendscriptAPI/illustrator21/#Document.html
FWIW: You posted in the Adobe Illustrator Scripting Forum.
Regards,
Uwe
Copy link to clipboard
Copied
Hi [Jongware],
Wow, you went all out with these examples thanks so much for your time and effort, lots to learn from in your examples. Awesome, thanks so much for taking the time to do this, really appreciated. Thanks [Jongware]!
I have a more poor mans approach in mind and will post it if I accomplish it.
---
[/Off Topic]: Is there any way to mark these answers besides "Was this helpful? Yes / No" since its not my thread, just wanted to know because this thread has a lot of nice examples in it and I wanted to give people thanks. I marked many as helpful, but was not sure if that does the trick. So many thanks [Jongware], CarlosCanto, Muppet Mark, a lot of good stuff in here by all of you. 😉
Copy link to clipboard
Copied
I used to be great at math while ( at school ) it's the do { nothing }
hahaha we, should start school in our thirties. good one.
hey, remember math is like riding a bike...
Copy link to clipboard
Copied
"Minus Back" needs an action in Illustrator!?
among the other half of the features not accessible to scripting...I'm really getting jealous now, why can't we have pathfinders too?...I know why, Illustrator is the adopted child.
I *was* thinking about it but I guess there's not going to be an Illustrator version of this!
come on, don't give up yet, at least make a pc version...you could use doScript and....."sendKeys"

Copy link to clipboard
Copied
Fantastic, thankyou very much. Really helpful!
Dave


-
- 1
- 2