Hi,
I just started playing around with creating plugins for Adobe XD and so far I really like the thoughts behind how to create plugins.
I have a question on how to change a selected group childs width. Let’s imagine that I have a group which consists of one text element and one rectangle.
I tried the following and when I use console.log the width changed but not when I look at the XD group or rectangle:
const {Rectangle,Text} = require("scenegraph");
function myCommandFunction(selection) {
let node = selection.items[0];
node.children.forEach(function (childNode, i) {
node.children.forEach(function (childNode, i) {
if(childNode.constructor.name == "Rectangle"){
childNode.width = 200;
}
});
});
}
module.exports = {.....