Skip to main content
Known Participant
March 23, 2023
Answered

Commands displayed in the library

  • March 23, 2023
  • 1 reply
  • 554 views

Select symbols in the scene,What command is used to locate symbols in the library

This topic has been closed for replies.
Correct answer Multoman

Hi. Select the characters you need and run the command. The item that you have chosen to stand out in the library

var dom = fl.getDocumentDOM();
var select = dom.selection;
for(var i = 0; i < select.length; i++){
var itemName = select[i].libraryItem.name 
dom.library.selectItem(itemName, false)
	}

 

1 reply

Multoman
MultomanCorrect answer
Inspiring
March 23, 2023

Hi. Select the characters you need and run the command. The item that you have chosen to stand out in the library

var dom = fl.getDocumentDOM();
var select = dom.selection;
for(var i = 0; i < select.length; i++){
var itemName = select[i].libraryItem.name 
dom.library.selectItem(itemName, false)
	}

 

kqskcmAuthor
Known Participant
March 23, 2023

Perfect!

kglad
Community Expert
Community Expert
March 23, 2023

@kqskcm 

 

use your history panel to see jsfl statements needed to execute particular steps.