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

script relink bypass raw converter

New Here ,
Nov 30, 2023 Nov 30, 2023

Copy link to clipboard

Copied

I have tried to make a script that relinks to the raw file.
It actually works very well, but it opens the raw converter every time.
Since the whole thing must be run as a batch, I would like to avoid having to press enter key 100 times.
Someone who can help with a way to script through the raw converter without adjusting already adjustments.
TOPICS
Actions and scripting , Experiment , Windows

Views

333

Translate

Translate

Report

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
Adobe
New Here ,
Nov 30, 2023 Nov 30, 2023

Copy link to clipboard

Copied

LATEST

This is the code im running:

var activeDoc = app.activeDocument;
var filepath = new File(activeDoc.fullName);
var bottomLayer = activeDoc.layers[0];
createSmartObject();
function createSmartObject() {
    var idnewPlacedLayer = stringIDToTypeID( 'newPlacedLayer' );
    executeAction(idnewPlacedLayer, undefined, DialogModes.NO);
}
function relinkSO(path) {
    var desc = new ActionDescriptor();
    desc.putPath(charIDToTypeID('null'), new File(path));
    executeAction(stringIDToTypeID('placedLayerRelinkToFile'), desc, DialogModes.NO);
} // end of relinkSO()

// Relink active layer(smart object) with a provided file path
relinkSO(filepath);

Votes

Translate

Translate

Report

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