Indesign Python



  • Adobe InDesign CC Tutorial
  • Aug 17, 2020 Scripting in InDesign is used to automate a wide variety of repetative task or as complex as an entire new feature python photoshop scripting illustrator photoshop-script indesign illustrator-scripts Updated on Nov 16, 2020.
  • Feb 27, 2018 InDesign can be scripted through COM (Component Object Model). Its DOM (Document Object Model) is the same when accessing it through either its own JavaScript engine or Python or any other.
  • Adobe InDesign CC Resources
  • Selected Reading

In this episode, I cover how scripting can save you hundreds of hours on mundane tasks.Facebook: http://www.twi.


Image transparency or if you are an image editor, the alpha channel, is very important to ensure that the image you are inserting into the document blends with it instead of appearing like an amateur cut-and-paste job.

There are two ways to get the separate image or the alpha channel from the background and for both of these, we need to switch over to Photoshop.

One of the ways is to use the Clipping tool in Photoshop to draw a path around the object we want to isolate from the background. This method, although useful, can result in sharp edges and might not look professional especially when the clipped image is inserted into the document. Hence, we will focus on the other way which is to isolate the alpha layer from within Photoshop to get a better anti-aliased object that blends with the document.

In this example, let us say that you want to isolate the bird from the background. Place the image into InDesign and go to the Edit menu and select Edit with and in the submenu, choose Adobe Photoshop. You can also choose any other image editor you are accustomed to, if it shows up in the Edit with menu.

Remember that although you can work with JPEGs, it is better to use Photoshop PSD files as they preserve the channel information much better.

In this case, the selection of the bird has been made using the Magnetic Lasso tool (you can also use the Pen tool if you need more precise cut outs) and loaded the selected part of the image as a new Alpha channel called Alpha1.

Now, click the Channels tab and drag this Alpha1 channel onto the Load channel as selection icon, which is the first icon from the left in the bottom of the panel.

Next, go the Layers tab and click on Add layer mask icon to create a layer mask with the transparency (be sure to unlock the layer if its locked).

You will see that the bird has been isolated and the background has been made transparent.

Save the image and return to InDesign to see the changes happen automatically.

Since the image is linked, any change that you do in Photoshop will reflect automatically in InDesign. If you zoom into the image, you will find less of sharp edges and a much more refined outline.

Free video editor for mac os. You can now fit the image into the frame by applying the image fitting commands discussed in the previous chapter.

InDesign allows you to create basic animations for output to digital PDF or HTML formats without using separate software.

Indesign Python

This feature works similarly in InDesign CS5, CS6, and CC versions.

Indesign Python

  1. Using the Selection Tool, choose the object to be animated. Go to the Window menu, scroll to Interactive, and select Animation.

  2. In the Animation Panel, select the animation from the Preset menu.

  3. Set the Duration, Play, and Speed options.

  4. Expand the Properties section, if necessary, for additional options such as Rotate, Scale, and Opacity. (These options will vary depending on the animation preset you choose.)

  5. To preview the animation, click the Preview button at the lower left corner. (In InDesign CC, this will preview as EPUB. Previous versions preview as SWF.)

  6. In the EPUB Interactivity Preview Panel, click the Play button.

  7. To preview the animation for PDF, go to the Window menu, scroll down to Interactive, and choose SWF Preview.

  8. The SWF Preview Panel is similar to the EPUB Interactivity Preview Panel.