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

Changer at marker

Explorer ,
Oct 11, 2022 Oct 11, 2022

Copy link to clipboard

Copied

Hi
Opacity value to be 100 when the time is equal to the time of the marker
I want it to show 3 frames instead of just 1 frame
Can someone help me fix the expression? Thank

var nMarker=thisLayer.marker;
var timeMarkers=nMarker.nearestKey(time).time;
if(timeMarkers==time){
	100
}
else{
	0
}

15b66051-cbcc-4c16-a4be-b1ee096a8e33.png

TOPICS
Expressions

Views

54

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

Community Expert , Oct 11, 2022 Oct 11, 2022

Like this maybe:

var nMarker=thisLayer.marker;
var timeMarkers=nMarker.nearestKey(time).time;
var f = timeToFrames(time - timeMarkers);
f >= 0 && f < 3 ? 100 : 0

Votes

Translate

Translate
Community Expert ,
Oct 11, 2022 Oct 11, 2022

Copy link to clipboard

Copied

Like this maybe:

var nMarker=thisLayer.marker;
var timeMarkers=nMarker.nearestKey(time).time;
var f = timeToFrames(time - timeMarkers);
f >= 0 && f < 3 ? 100 : 0

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
Explorer ,
Oct 11, 2022 Oct 11, 2022

Copy link to clipboard

Copied

LATEST

Thank you!! It works as expected

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