Skip to content

Layer Control from an installed plugin doesn't react to selecting new layers added between first and later activations #66

Description

@Overruler

To reproduce:

  1. Create an effect with a Layer Control UI element, build it as a DLL and install the built DLL.
  2. Run the installed plugin effect with 3 layers, each containing a different image.
  3. Observe that changing the layer to any of the 3 effects a change in the resulting image.
  4. Add 5 more layers, again with unique images.
  5. Run the installed plugin effect a second time, now with 8 layers.
  6. Observe that changing the layer to any of the 8 appears to work, but only selecting one of the first 3 layers effects a change in the variable containing the index of the selected layer.

Example effect code:

        #region UICode
        LayerControl UserLayer = 0; // Source
        #endregion
        protected override IDeviceImage OnCreateOutput(IDeviceContext dc)
        {
            return Environment.Document.Layers[UserLayer.Clamp(0,Environment.Document.Layers.Count-1)].Image;
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions