OK I notice a problem with your change. Looks like it's based off of :trueBlue wrote: ↑26 Jan 2023, 23:50 Yep!
If you add the following you can see this behavior.
TheNode scriptCode: Select all
if(Node.IsRenderable(firstSel)) { var selstr = colorSource.GetStringAt(4); i = 1; colorSource.SetSelectedString(selstr); }
Code: Select all
if(Node.IsLight(firstSel)) {
var selstr = colorSource.GetStringAt(0);
i = 1;
colorSource.SetSelectedString(selstr);
}
so your i = 1 should be 4 + 1 [GetStringAt(4)]
Try that and see if it works any better.