Lightroom SDK: shared widths are dialog-box-wide, so one plugin's shared widths may screw up another's layout.

  • 1
  • Problem
  • Updated 5 years ago
shared widths are dialog-box-wide, so one plugin's shared widths may screw up anothers layout.

e.g. if I write

width = LrView.share( 'my_width' )

and another plugin sharing the dialog box (e.g. export filter) also has

width = LrView.share( 'my_width' )

then both plugins will have width of component which depends on the layout of the other plugin.

I assume this applies to all shared values, not just width.

Not good (did ya get it?)

To plugin authors: I recommend prefixing/suffixing your shared values with a secret code to avoid conflict with other export plugins/filters. In fact, Lightroom itself may be using shared values that could conflict with yours.

~R.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes

Posted 5 years ago

  • 1

Be the first to post a reply!