How to get currently editing block name in Script Shell
Posted: Sat Dec 07, 2019 3:59 pm
Dear all,
I can't find the way to get the Id of the block that I am editing right now. I have all the block Ids with these line:
Then I should find "currently editing" block somehow...
And then apply:
where block is the blockId that I'm looking for.
I'm also asking myself if document variable definition line should be diferent. I'm writing this one:
or
Does exist any getBlockDocument like? I mean get document entities only inside some block...
Any help will be very welcomed!
I can't find the way to get the Id of the block that I am editing right now. I have all the block Ids with these line:
Code: Select all
var blockIds = document.queryAllBlocks();
And then apply:
Code: Select all
var block = document.queryBlock(blockId);
var blockName = block.getName();
I'm also asking myself if document variable definition line should be diferent. I'm writing this one:
Code: Select all
var document = this.getDocument();
Code: Select all
var document = this.getDocumentInterface();
Any help will be very welcomed!