Javascript for new rotate view - is it supported yet?

Community Beginner ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

What is the javascript for this

As per https://helpx.adobe.com/in/illustrator/using/rotate-view.html

Thanks

TOPICS
Scripting

Views

80

Likes

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

Enthusiast , Jul 01, 2021 Jul 01, 2021

Likes

Translate

Translate
Enthusiast ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

View objects don't have a rotate function. The closest I can think of is rorating everything (artboard and artwork) multiples of right angles:

https://community.adobe.com/t5/illustrator/rotate-an-entire-document-with-all-elements-90-degrees/m-...

Likes

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
Enthusiast ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

LATEST

Yes I read it as a rotate function too, but actually it's a property, which I guess makes sense.

Likes

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
Enthusiast ,
Jul 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

See this post: 

https://community.adobe.com/t5/illustrator/what-s-new-in-illustrator-scripting-cc2021-v25-3-1-june-2...

 

 

app.activeDocument.activeView.rotate = 45; // degrees clockwise

 

 

Likes

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