Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

P: SDK method exportRendition:waitForRender() returns incorrect results for videos

LEGEND ,
Oct 19, 2024 Oct 19, 2024

The SDK method exportRendition:waitForRender() returns incorrect results for videos. The documentation says:

 

JohnREllis_0-1729401700329.png

For photos, it works correctly. But for videos, it returns "false, nil" even when the video is correctly exported. 

 

To reproduce:

 

1. Download and unzip this catalog:

https://www.dropbox.com/scl/fi/g9ihjg69c85v8ets6h6kj/export-video-bug.2024-10-19.zip?rlkey=20fnn83lz... 

 

2. Copy the file "export-video-bug.lua" from the catalog folder to the Scripts subfolder in the Lightroom settings folder.

 

3. Open the catalog in LR.

 

4. Do File > Export, right-click the preset folder User Presets, do Import..., and select the file "Video Test.lrtemplate" in the catalog folder. That is an export preset that will export video files to the Desktop.

 

5. Select one of the videos in the catalog and do File > Export With Preset > Video Test. Observe that the video is correctly exported to the Desktop.

 

6. With the same video selected, do Scripts > export-video-bug and observe this output:

JohnREllis_1-1729402279131.png

 

This shows that the video has been successfully exported to the desktop, but rendition:waitForRender() incorrectly returns "false, nil". It should have returned:

 

true, /Users/john/Desktop/IMG_1711-from_iPhone-2.mp4

 

The script "export-video-bug.lua" uses the Export settings copied from the export preset Video Test.

 

Tested on LR 14.0.1 / Mac OS 14.6.1.

Bug Investigating
TOPICS
macOS , SDK , Windows
654
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Pinned Reply

Adobe Employee , Oct 20, 2024 Oct 20, 2024

Bug written - updating status. 

Status Investigating
Translate
2 Comments
Adobe Employee ,
Oct 20, 2024 Oct 20, 2024

Bug written - updating status. 

Rikk Flohr: Adobe Photography Org
Status Investigating
Translate
Report
LEGEND ,
Dec 12, 2024 Dec 12, 2024
LATEST

@Rikk Flohr: Photography: I confirmed that the bug recipe executes correctly in LR 14.1, thanks.

Translate
Report