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

Changer at marker

Explorer ,
Oct 11, 2022 Oct 11, 2022

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

Thank you!! It works as expected

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