Skip to main content
VideoQuickFix
Participant
June 20, 2026
Answered

Premiere Pro 26.3 Regression: ComponentParam.createSetValueAction throws "The script object is no longer valid"

  • June 20, 2026
  • 2 replies
  • 15 views

Premiere Pro 26.3 Regression: ComponentParam.createSetValueAction throws "The script object is no longer valid"
 

Environment:

- Premiere Pro 26.2: Works

- Premiere Pro 26.3: Fails

- UXP Panel


Minimal Reproduction:


const current = await cropTopParam.getStartValue();

const kf = cropTopParam.createKeyframe(current.value.value);

const action = await cropTopParam.createSetValueAction(kf, true);


Expected:

Action object returned.


Actual:

"The script object is no longer valid."


Notes:

- Parameter is freshly retrieved.

- getStartValue() succeeds.

- createKeyframe() succeeds.

- createCloneTrackItemAction() also appears affected.

    Correct answer Cameron+Legleiter

    Hi ​@VideoQuickFix 

    Try creating the Action object within a `project.lockedAccess` /  `project.executeTransaction` callbacks, e.g.:

    const project = ...  // the active project, or project of choice
    const current = await cropTopParam.getStartValue();
    const kf = cropTopParam.createKeyframe(current.value.value);

    project.lockedAccess(() => {
    // Create the action here...
    const action = cropTopParam.createSetValueAction(kf, true);

    // ...and use it here
    project.executeTransaction((compoundAction) => {
    compoundAction.addAction(action);
    });
    });

    I’d recommend following this sort of pattern when working with functions which create Actions.

    2 replies

    KatieToo
    Community Manager
    Community Manager
    June 22, 2026

    Hi ​@VideoQuickFix 
    Welcome to the Premiere forums! Glad you stopped by. We need a few more details to try to help with the issue. Please see,  How do I write a bug report?

    It appears that you are looking to develop a plugin, correct? 

    Appreciate your post,
    Katie

    Cameron+Legleiter
    Cameron+LegleiterCorrect answer
    Participant
    June 22, 2026

    Hi ​@VideoQuickFix 

    Try creating the Action object within a `project.lockedAccess` /  `project.executeTransaction` callbacks, e.g.:

    const project = ...  // the active project, or project of choice
    const current = await cropTopParam.getStartValue();
    const kf = cropTopParam.createKeyframe(current.value.value);

    project.lockedAccess(() => {
    // Create the action here...
    const action = cropTopParam.createSetValueAction(kf, true);

    // ...and use it here
    project.executeTransaction((compoundAction) => {
    compoundAction.addAction(action);
    });
    });

    I’d recommend following this sort of pattern when working with functions which create Actions.

    VideoQuickFix
    Participant
    June 22, 2026

    That works! Thank you so much!