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

Recording Smooth Slider with Actions not working

New Here ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

I'm trying to smooth a selected shape using scripts as part of a larger script. However, I have not found any way to automatically run the new object>path>smooth command. I have tried many things, including executeMenuCommand('smooth menu item'), which I could either get to do nothing, or crash, depending on what I had selected (and even if it worked, I imagined it would pop up the slider instead of running it with a pre-defined value so not really a good solution for my case.) I have also tried recording it as an action, since I know I can play those back through scripts, but it does not record the smooth slider at all. I can use Insert Menu Item to make it pop up, but, once again, I don't want it to pop up, I want it to run with a predefined value, like I'm able to do with the simplify command. I have tried very hard to get the simplify tool to do what I need, but it's just not capable, I need smooth to work. I'm not sure if this is a bug or if for some reason you decided not to allow this to be recorded, but please, let the smooth command be recorded by actions.

TOPICS
Bug , Feature request , Scripting

Views

172

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
Community Expert ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

The Smooth feature is new. Adobe hasn't updated the Scripting API in a while so there's little chance there's a string to use with the ExecuteMenuCommand function. If they do update the Scripting API, they don't announce it. So it's a lose-lose situation.

 

About being able to record it with Actions, post a request to the UserVoice site, with some luck it might get implemented in the future.

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 ,
Jan 09, 2024 Jan 09, 2024

Copy link to clipboard

Copied

LATEST

`executeMenuCommand('smooth menu item')` is probably based on the information I published.
executeMenuCommand() Command List

 

I tried it and worked fine in Illustrator 28 and the slider appears.

I tried it and worked fine in Illustrator 28.0 and the slider appears, but 28.1 shows an unintelligible UI and did not work. But either way, automatic smoothing based on presets is not supported yet.

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