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

Add ink stroke to multiple shapes/objects

New Here ,
Mar 12, 2017 Mar 12, 2017

Is there a way to add an ink stroke to a bunch of shapes/objects at once instead of having to click every part manually? I'm referring to shapes/objects that do not already have an ink outlines.

1.1K
Translate
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

Adobe Employee , Mar 13, 2017 Mar 13, 2017

The following JSFL should work if you have selected the shapes already:

fl.getDocumentDOM().selection[0].x+=0; //this line does not have any effect but seems to be required.

fl.getDocumentDOM().setStrokeSize(1);

You can save the JSFL file as a command and assign a keyboard shortcut to it for quick access.

Translate
Community Expert ,
Mar 12, 2017 Mar 12, 2017

you can use jsfl for that, but i don't know a way to do that from the animate interface.

Translate
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
LEGEND ,
Mar 12, 2017 Mar 12, 2017

Does JSFL have access to multiple islands in a selected shape?

Translate
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 12, 2017 Mar 12, 2017

yes, jsfl can loop through each and every shape/object and apply a stroke of various kinds.

Translate
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
LEGEND ,
Mar 12, 2017 Mar 12, 2017

I don't think so, but using the Ink Bottle tool is quite quick. How many shapes to you want to give a stroke?

Translate
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
LEGEND ,
Mar 12, 2017 Mar 12, 2017

The "I don't think so" was in reply to the original post, not the JSFL idea. My posts arrived out of order!

Translate
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 ,
Mar 12, 2017 Mar 12, 2017

Really? I find that hard to believe. Oh well. I've already manually applied the stroke to all the objects. It took a while. Also, what is JSFL??

Translate
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 Employee ,
Mar 13, 2017 Mar 13, 2017

The following JSFL should work if you have selected the shapes already:

fl.getDocumentDOM().selection[0].x+=0; //this line does not have any effect but seems to be required.

fl.getDocumentDOM().setStrokeSize(1);

You can save the JSFL file as a command and assign a keyboard shortcut to it for quick access.

Translate
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
LEGEND ,
Mar 13, 2017 Mar 13, 2017

I tested that and it does work. This time I'll mark Nipun's answer as Correct!

I gave kglad a 'helpful' too.

Translate
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 ,
Mar 13, 2017 Mar 13, 2017

Can someone explain to me what a JSFL is? I'm not familiar with it.

Translate
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 13, 2017 Mar 13, 2017

it's a language that lets you run code in the authoring environment, http://help.adobe.com/en_US/flash/cs/extend/flash_cs5_extending.pdf

Translate
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 Employee ,
Mar 14, 2017 Mar 14, 2017

All you need to do is go to File Menu > New > choose JSFL Script File > OK

Copy paste the below code and save the file:

     fl.getDocumentDOM().selection[0].x+=0; //this line does not have any effect but seems to be required.

     fl.getDocumentDOM().setStrokeSize(1);

Now, simply go back to your Fla document, choose all the shapes you want to add stroke to, goto Commands menu and click on the file name you saved above.

Translate
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
LEGEND ,
Mar 14, 2017 Mar 14, 2017
LATEST

It can be even easier than that. Copy and paste Nipun's code into a new JSFL document. Select the shapes on the stage, and above the JSFL document there is a play button. Click that. No need to save the JSFL or add it to your commands menu.

Of course, if you're going to be doing a lot of the same action it's handy to have it in the commands menu.

Translate
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