Skip to main content
Inspiring
March 17, 2023
Answered

SDK Auto straighten with a plug-in

  • March 17, 2023
  • 1 reply
  • 613 views

Is there a way to "Auto straighten" from a plug-in using the Lr SDK?

This topic has been closed for replies.
Correct answer johnrellis

There's no way to invoke the Auto bottom of the Crop panel via the SDK. But a plugin can invoke Transform > Level via

 

photo:applyDevelopSettings {EnableTransform = true, PerspectiveUpright = 3}

 

 

1 reply

johnrellis
johnrellisCorrect answer
Genius
March 18, 2023

There's no way to invoke the Auto bottom of the Crop panel via the SDK. But a plugin can invoke Transform > Level via

 

photo:applyDevelopSettings {EnableTransform = true, PerspectiveUpright = 3}

 

 

Participant
September 10, 2023

There is a straightenAngle parameter documented in LrDevelopController but it looks like that is just for specifying a specific rotation angle to apply.