Is it possible to dynamically set Sheet Configuration options (duplex/media/landscape) via a Control Script?

In PlanetPress Connect Designer, in order to set duplex (short edge/long edge) or media tray calls dynamically, I manually set up identical print sections with the only change is the Sheet Configuration options. I then call these sections via a control script based upon the input data.

Is there a way to set the duplex (short edge/long edge) or media tray call Sheet Configuration options for a section via a control script? Similarly, is there a way to set portrait/landscape options via a control script?

In my current setup, based upon the input data, I’m calling one of the following print sections.

  1. Plain Run Page
  2. Plain Run Page - Duplex Long Edge
  3. Plain Run Page - Duplex Short Edge
  4. Color Run Page
  5. Color Run Page - Duplex Long Edge
  6. Color Run Page - Duplex Short Edge

If the input data calls for a print job pulling from the Plain media tray using Duplex Short Edge, I would call “Plain Run Page - Duplex Short Edge” which has the following options selected:

If the input data calls for a print job pulling from the Color media tray using Duplex Long Edge, I would call “Color Run Page - Duplex Long Edge” which has the following options selected:

Although this does work, I’m now having to add a landscape section. In my current setup, this would mean I would have to setup the following:

  1. Plain Run Page
  2. Plain Run Page - Landscape
  3. Plain Run Page - Duplex Long Edge
  4. Plain Run Page - Duplex Long Edge - Landscape
  5. Plain Run Page - Duplex Short Edge
  6. Plain Run Page - Duplex Short Edge - Landscape
  7. Color Run Page
  8. Color Run Page - Landscape
  9. Color Run Page - Duplex Long Edge
  10. Color Run Page - Duplex Long Edge - Landscape
  11. Color Run Page - Duplex Short Edge
  12. Color Run Page - Duplex Short Edge - Landscape

If duplex, media, and landscape options can be set via a control script, it would cut down on the number of sections that would need to be manually defined and called via a control script.

The only workaround I’ve found for one of the Sheet Configuration options is for rotation. This is accomplished by using the following in a CSS file:

.page_mediabox img {

transform: rotate(180deg);

}

If this helps in any way, Media details can be set\selected in a control script with

merge.template.media[‘Media Name’].stationery.

from here just hit CTRL + SPACE for intellisense and automatic script completion

http://help.objectiflune.com/en/pres-connect-user-guide/1.7/#designer/API/template_Object.htm

Thanks, I took a look but I only see options to set the “Virtual Stationary” options, however, I need to set the “Characteristics” options for the Media Type.

I did find if I use the following script, it can reference the name of the section and point to the media of my choice for that section.

This also works with clones as long as you include the * in the html[section*=‘’] area and specify a wildcard phrase that matches the clone name.