EL Dragon Posted May 13, 2015 Posted May 13, 2015 is such a thing possible? z.b Script: act.SetColor("#760ED1F4"); TO act.SetColor("#763D0EF4"); Quote
Tokei Posted May 14, 2015 Posted May 14, 2015 Yes, the color component can be modified : foreach (var action in act) { foreach (var frame in action) { foreach (var layer in frame) { if (layer.Color == "#760ED1F4") { layer.Color = "#763D0EF4"; } } } } You could also go for... foreach (var action in act) { foreach (var frame in action) { foreach (var layer in frame) { var c = layer.Color; layer.Color = GrfColor.FromHsv(0.76f, c.Saturation, c.Brightness, c.A); } } } On a side note, this is Act Editor, not Actor ;O. Quote
0 dexter Posted June 17, 2017 Posted June 17, 2017 On 13/05/2015 at 9:34 PM, Tokei said: Yes, the color component can be modified : foreach (var action in act) { foreach (var frame in action) { foreach (var layer in frame) { if (layer.Color == "#760ED1F4") { layer.Color = "#763D0EF4"; } } } } You could also go for... foreach (var action in act) { foreach (var frame in action) { foreach (var layer in frame) { var c = layer.Color; layer.Color = GrfColor.FromHsv(0.76f, c.Saturation, c.Brightness, c.A); } } } On a side note, this is Act Editor, not Actor ;O. Hello everyone, sorry do revive this topic but how can i make this into a lua script for actor? Quote
Question
EL Dragon
is such a thing possible?
z.b Script:
act.SetColor("#760ED1F4");
TO
act.SetColor("#763D0EF4");
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.