EL Dragon Posted May 13, 2015 Group: Members Topic Count: 86 Topics Per Day: 0.02 Content Count: 591 Reputation: 146 Joined: 06/19/12 Last Seen: December 10, 2016 Share Posted May 13, 2015 is such a thing possible? z.b Script: act.SetColor("#760ED1F4"); TO act.SetColor("#763D0EF4"); Quote Link to comment Share on other sites More sharing options...
Tokei Posted May 14, 2015 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 696 Reputation: 721 Joined: 11/12/12 Last Seen: 11 hours ago Share 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 Link to comment Share on other sites More sharing options...
EL Dragon Posted May 14, 2015 Group: Members Topic Count: 86 Topics Per Day: 0.02 Content Count: 591 Reputation: 146 Joined: 06/19/12 Last Seen: December 10, 2016 Author Share Posted May 14, 2015 thx for help Quote Link to comment Share on other sites More sharing options...
0 dexter Posted June 17, 2017 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 19 Reputation: 1 Joined: 12/31/11 Last Seen: June 25, 2021 Share 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 Link to comment Share on other sites More sharing options...
Question
EL Dragon
is such a thing possible?
z.b Script:
act.SetColor("#760ED1F4");
TO
act.SetColor("#763D0EF4");
Link to comment
Share on other sites
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.