Opacity + Effect

Opacity Randomizer Live Effect

Opacity Randomizer Live Effect

Illustrator Location: Illustrator Main Menu > Effect > Randomino > Opacity Randomizer...

Opacity Randomizer is an Astute Graphics live effect for randomly and non-destructively varying the opacity of one or more objects. Both linear and Gaussian random distributions are supported, and the applied opacity values can be rounded. Objects can be “filtered” so only some of them are affected, and, when applying the effect to nested groups, the depth at which it is applied can be specified.

Opacity Randomizer Example

Opacity Randomizer Example

As with most live effects, Opacity Randomizer appears in the main menu, under Effect > Randomino. It can also be applied directly from the Appearance panel using the “Add New Effect” button at the bottom of the panel.

Opacity Randomizer Parameters Dialog

After applying the live effect using the menu item (or when clicking on the existing effect in the Appearance panel to edit it), the parameters dialog will appear: 

Opacity Randomizer Parameters Dialog

Opacity Randomizer Parameters Dialog

1. Variation

The amount of variation in opacity to apply, ranging from 0 (no variation) to 100 (maximum variation). The value can be changed with the slider or entered numerically in the text box. A variation of 20, for example, would apply opacities randomly ranging from 80% to 100%, while a variation of 75 would apply opacities from 25% to 100%.

Opacity Randomizer Variation Examples

Opacity Randomizer Variation Examples

Because the opacities that Opacity Randomizer applies are multiplied onto existing opacities, final random opacities from 0% to 50%, say, may be achieved by setting the art’s overall opacity to 50% and then applying Opacity Randomizer with a variation of 100.

2. Step

Constrains each applied opacity value (after randomization) to multiples of the specified step value while still remaining in the original range (when possible). For example, if the variation is set to 34, then normally any opacity value between 66% and 100% might be produced — say, 87%. But enabling Step with a value of 10% would result in only values of 70%, 80%, 90%, or 100%.

3. Distribution Curves

Specifies either a linear distribution in random values (all values in the range are equally likely to be chosen) or a Gaussian distribution (central values in the range are more likely to be chosen).

4. Seed

Each random seed number leads to a different sequence of random values. Clicking the button picks a new seed, thereby changing the look of the artwork. To view or specify the seed number directly, Option/Alt-click the button. This lets you recreate a previously-generated look.

5. Apply at Grouping Level

Unless a live effect is applied above all strokes and fills (a “pre” effect), or inside a stroke or a fill and above other live effects, the art object internally passed to it is always a group. And this group may contain other groups, and so on. The Grouping Level controls the level at which the effect is applied, which affects what elements in the hierarchy get different random opacities. It can range from 0 (representing the top-level art) to 29 (the deepest level of group nesting allowed in Illustrator).

In the simplest case (when the effect is applied to a single stroked-and-filled path), the live effect mechanism separates the stroke from the fill, and passes a stroke-only path and a fill-only path to the live effect in a group. So while a Grouping Level of 0 would apply the same (random) opacity to the stroke and fill (because it is applied at the top grouping level), a Grouping Level of 1 would cause it to choose a different opacity for the fill than that of the stroke:

Opacity Randomizer Grouping Level on Simple Path

Opacity Randomizer Grouping Level on Simple Path

Next, consider the case of applying Opacity Randomizer to a group of stroked and filled paths. This top-level group may or may not have its own stroke and/or fill in its appearance. Here, the group passed to the effect has three groups inside it. One is composed of the paths with group level strokes (if there is no group level stroke, these would have no stroke or fill); another is composed of the paths with group level fills (similarly, if there is no group level fill, these would also have no stroke or fill); and the last is composed of the original paths in the group (and here, strokes and fills are not broken apart). 

Opacity Randomizer Grouping Level on Group of Paths

Opacity Randomizer Grouping Level on Group of Paths

In general, each nested group in the original art requires two Grouping Levels to “dig into,” due to the fact that a group stroke or fill can be present at each level. Because it can be difficult to anticipate what Grouping Level to use because the live effect mechanism can be complicated, it is recommended to simply increase the Grouping Level until the results are what is desired (changing the seed, if necessary, to see what is really changing independently). Setting the Grouping Level above the highest “valid” value will not cause a problem.

6. Filter Affected Art By Type

When enabled, only the art types that have a checkmark next to them will have their opacities randomly changed. For example, if many images are each grouped with a text caption, the opacities of just the images could be randomized by turning off the “Text” checkbox:

Opacity Randomizer Filter by Type Example

Opacity Randomizer Filter by Type Example

7. Filter Affected Art By Index

When enabled, each art object’s index is used to determine whether it should have its opacity randomly changed, using one of seven different methods. The index is simply an integer sequentially assigned to each object at the specified Grouping Level in the order it is encountered, starting with zero for the first object. Generally, the index increases going downwards in the stacking order; however, other live effects present in the appearance stack may change this order, sometimes randomly (such as PathFinder effects). The available By Index methods are as follows:

  • a. First: Only the first n objects are affected, where n is the specified value. 

Opacity Randomizer by Index First Controls

Opacity Randomizer by Index First Controls

Opacity Randomizer Filter by Index - First

Opacity Randomizer Filter by Index - First

  • b. Last: Only the last n objects are affected, where n is the specified value.

Opacity Randomizer by Index Last Controls

Opacity Randomizer by Index Last Controls

Opacity Randomizer Filter by Index - Last

Opacity Randomizer Filter by Index - Last

  • c. First or Last: Only the first and last objects are affected.

  • d. Odd: Only objects with an odd index (1, 3, 5, 7...) are affected.

  • e. Even: Only objects with an even index (0, 2, 4, 6...) are affected.

Opacity Randomizer Filter by Index - Odd & Even

Opacity Randomizer Filter by Index - Odd & Even

  • f. Pattern: Creates a repeating pattern of matching indices based on the three pattern parameters.

Opacity Randomizer by Index Pattern Controls

Opacity Randomizer by Index Pattern Controls

  • Initial Skip specifies the number of indices to skip over at the start (art with these indices will not be affected). Then, Match specified the number of indices that will match and therefore be affected. Finally, Skip specifies the number of indices to skip over following the matching indices. When the total of the values in the three parameters is less than the number of eligible art objects, the pattern repeats, using the Match and Skip values in alternation.

Opacity Randomizer Index by Pattern

Opacity Randomizer Index by Pattern

  • g. Randomly: Each art object has the specified random chance (from 0% to 100%) of being affected. The parameter has a seed value that is independent from the main opacity seed value. Just as with that seed value, clicking the button picks a new seed, thereby changing the look of the artwork. To view or specify the seed number directly, Option/Alt-click the button. This lets you recreate a previously-generated look.

Opacity Randomizer by Index Randomly Controls

Opacity Randomizer by Index Randomly Controls

Opacity Randomizer Filter by Index - Randomly

Opacity Randomizer Filter by Index - Randomly

8. Informational area

Shows a brief description of each control when the cursor is being hovered over it.

9. Preview

As with all live effects, when enabled, changing a parameter will immediately update the artwork while the dialog is still open.

10. Show Edges

By default, artwork selection edges are automatically hidden when the Opacity Randomizer parameters dialog is up, to make it easier to see opacity changes. However, by toggling the checkbox on, they may be shown again. 

11. Defaults Popup Menu

Contains several functions concerning the default Opacity Randomizer settings. Default settings are those that initially appear in the parameters dialog whenever Opacity Randomizer is applied to art as a new effect (i.e., not when adjusting an existing instance of the effect).

Opacity Randomizer Default Menu

Opacity Randomizer Default Menu

  • A. Save Current Settings as Defaults: The settings that are currently displayed in the dialog will be saved and used as the defaults in the future.

  • B. Restore Factory Defaults: The default settings will be restored to those that were in place when the plugin was installed and run for the first time. They will also automatically be loaded into the dialog.

  • C. Load Defaults: All current settings will be replaced with the default settings (which may have been customized through the first menu item).

12. Help Button

Opens the help documentation in the Astute Manager. If this does not automatically appear, please ensure your Astute Manager is running first.