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

Cutting a circle

Guest
Mar 24, 2012 Mar 24, 2012

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

cut.png

TOPICS
Scripting

Views

13.8K

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
Adobe
New Here ,
Nov 02, 2012 Nov 02, 2012

Copy link to clipboard

Copied

[Jongware]

YOU ARE MY HERO. Thank you, thank you, thank you. this does exactly what I need.  Thank you Thank you

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
New Here ,
Feb 15, 2017 Feb 15, 2017

Copy link to clipboard

Copied

[Jongware]

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; 

Error.jpg

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

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 ,
Jun 29, 2019 Jun 29, 2019

Copy link to clipboard

Copied

LATEST

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

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
Mentor ,
Oct 02, 2012 Oct 02, 2012

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. 😉

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 ,
Mar 25, 2012 Mar 25, 2012

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...

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 ,
Mar 25, 2012 Mar 25, 2012

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"

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
Guest
Mar 25, 2012 Mar 25, 2012

Copy link to clipboard

Copied

Fantastic, thankyou very much. Really helpful!

Dave

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