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

In ExtendScriptDebugger for vscode, If I assign a number to a variable and it doesn't reflect well .

Explorer ,
Aug 25, 2024 Aug 25, 2024

Copy link to clipboard

Copied

I am trying to create an extension in adobe premier pro using extendScript debugger for vscode.

I have run the following debugging in a jsx file

[[[
thisClip.start.seconds = 4;
$.writeln("\nthisClip.start.seconds >> ",thisClip.start.seconds);
]]]

The following output was generated.
[[[
thisClip.start.seconds >> 1
]]]

 

I also ran the following code

[[[
var project = app.project;

var sequence = project.activeSequence;
var videoTracks = sequence.videoTracks;
//var thisTrack = videoTracks[3];
var thisTrack = videoTracks[0];
var clips = thisTrack.clips;
var thisClip = clips[0];

alert(thisClip.duration.seconds);
alert(thisClip.end.seconds);
alert(thisClip.inPoint.seconds);
alert(thisClip.outPoint.seconds);
alert(thisClip.start.seconds);

]]]]]

I get the following error

[[[[
Exception has occurred: 1
Illegal Parameter type

]]]]

If I assign a number to a variable and it doesn't reflect well, how do I solve it?

 

TOPICS
SDK

Views

84

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

correct answers 1 Correct answer

Adobe Employee , Aug 26, 2024 Aug 26, 2024

The PProPanel sample contains lots of Time object example usage (search Premiere.jsx for ".seconds"). 

>If I assign a number to a variable and it doesn't reflect well, how do I solve it?

Could you give a much narrower example? In the example [above], you don't check for errors after each function call, so it's impossible to see which generates the error. 

Votes

Translate

Translate
Adobe Employee ,
Aug 26, 2024 Aug 26, 2024

Copy link to clipboard

Copied

LATEST

The PProPanel sample contains lots of Time object example usage (search Premiere.jsx for ".seconds"). 

>If I assign a number to a variable and it doesn't reflect well, how do I solve it?

Could you give a much narrower example? In the example [above], you don't check for errors after each function call, so it's impossible to see which generates the error. 

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