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

Selecting a specific layer property key

Engaged ,
Oct 12, 2023 Oct 12, 2023

Copy link to clipboard

Copied

Hi all!!!

 

MaskPath.png

 

The mask "Mask 1" in the Mask Path property has several keys. How to use a script to select the first key of a mask? Make it active...

var compMotion = f_findCompItemByName("Motion")

var layerMotionFrame = compMotion.layer("MotionFrame")
var carentMask = layerMotionFrame.mask(1)
carentMask.selected = true
var propMaskPath = carentMask.maskPath
propMaskPath.keySelected(1) ???

 

TOPICS
Scripting

Views

255

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 12, 2023 Oct 12, 2023

I think this is what you're looking for:

propMaskPath.setSelectedAtKey(1,true);

Votes

Translate

Translate
Community Expert ,
Oct 12, 2023 Oct 12, 2023

Copy link to clipboard

Copied

LATEST

I think this is what you're looking for:

propMaskPath.setSelectedAtKey(1,true);

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