(Sorry my English is bad)
(Sorry my English is bad)
Hello!
I want to make a short script, but soon I faced a problem.
To understand how the box script works, I just pasted the example in the sctipt.api page
and added a variable that I want to changing the color, like followings:
——-
var item=LL.getContainerById(1).getItemByLabel(‘test’);
var color = 0xff00ff00; // pure green
var editor = item.getProperties().edit();
var box = editor.getBox(“i.box”);
box.setColor(“c”, “ns”, color);
———
But it did not work although it had any error!
Can i figure it out what is the problem(s)?
Thank you!
]]>
< ![CDATA[
You forgot at the end
editor.commit();
That line is the one that actually tells the launcher to show the changes
]]>
< ![CDATA[
TrianguloY Omg I have totally ignored last part in the example for a few hours.. Now it works! Thank You!
]]>