Jump to content
  • 0

Question

3 answers to this question

Recommended Posts

Posted

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.

  • 0
Posted
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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...