I tried few way to resize parent component using child component. I mean resize rectangle to using button. My parent component is rectangle then i put button component into parent component. I wrote this function on button component onclick “=set(“Parent!LenX”, 60)” its still not working on few ways. I need help. sketch says me set cannot be called in a formula. i dont know whats going on here
No you cannot set a parent attribute based on a child component attribute. With dynamic components the children can see the parent but the parent can’t see the child. If you can be more clear on what you are trying to achieve, and post the file with you attempt it would be easier to help. If you want to resize the parent why not put the formula in the parent component?
i may solved the problem i just tried this “=set(“ParentName!LenX”,60)” to without equal “set(“ParentName!LenX”,60) thats work on me but those are different metric untis my component is cm but its changed to inches.
1 Like