Latex Elbow Gloves with Changeable Colors (1 Viewer)

Faceless

Content Creator
Joined
Jun 12, 2011
Mike said:
This would require the loader because the vanilla template doesn't have a hand costume layer. Hue shifting the hands would mean hue shifting the whole body at the same time.

Here's what I have so far, not sure that's what you're looking for since there aren't any references.
Strictly speaking, that's not true. My Mileena costume, for instance, ties the gloves to the shirt RGB sliders, and ignores the skin HSL sliders. If you care, here's how I managed it:

code goes in the main settings frame (where you make your registerMod() calls etc)
Code:
//top = shirt mod
//bottom = pants mod
//arms = body mod
//collar = collar mod

import flash.events.Event;
import flash.display.MovieClip;
import flash.filters.ColorMatrixFilter;

var top_back = top.back.rgbFill;

//equivalent to default HSL slider values
var filter = new ColorMatrixFilter(new Array(
		0, 1, 0, 0, 0,
		1, 0, 0, 0, 0,
		0, 0, 1, 0, 0,
		0, 0, 0, 1, 0)
);

addEventListener(Event.ENTER_FRAME, followColorSlider);

function followColorSlider(e:Event) {	
	bottom.backside.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	bottom.leftCalf.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	bottom.leftThigh.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	bottom.chest.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	bottom.rightThigh.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	bottom.rightCalf.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	bottom.back.rgbFill.transform.colorTransform = top_back.transform.colorTransform;

	collar.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	
	arms.leftUpperArm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	arms.leftForearm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	arms.leftHand.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	arms.behindBackHands.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	arms.rightUpperArm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	arms.rightForearm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	arms.rightHand.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
	
	arms.leftUpperArm.filters = [filter];
	arms.leftForearm.filters = [filter];
	arms.leftHand.filters = [filter];
	arms.behindBackHands.filters = [filter];
	arms.rightUpperArm.filters = [filter];
	arms.rightForearm.filters = [filter];
	arms.rightHand.filters = [filter];
}

Of course, the vanilla template doesn't support handjob mode, so it probably is better to go with the loader.
 

mike

Casual Client
Joined
Feb 4, 2012
index.php


Available here : Costume mods - update 16 oct. 2014 : *Heavy* update | Undertow

Faceless said:
Strictly speaking, that's not true. My Mileena costume, for instance, ties the gloves to the shirt RGB sliders, and ignores the skin HSL sliders. If you care, here's how I managed it:

code goes in the main settings frame (where you make your registerMod() calls etc)
Code:
//top = shirt mod
//bottom = pants mod
//arms = body mod
//collar = collar mod

import flash.events.Event;
import flash.display.MovieClip;
import flash.filters.ColorMatrixFilter;

var top_back = top.back.rgbFill;

//equivalent to default HSL slider values
var filter = new ColorMatrixFilter(new Array(
        0, 1, 0, 0, 0,
        1, 0, 0, 0, 0,
        0, 0, 1, 0, 0,
        0, 0, 0, 1, 0)
);

addEventListener(Event.ENTER_FRAME, followColorSlider);

function followColorSlider(e:Event) {   
    bottom.backside.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    bottom.leftCalf.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    bottom.leftThigh.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    bottom.chest.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    bottom.rightThigh.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    bottom.rightCalf.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    bottom.back.rgbFill.transform.colorTransform = top_back.transform.colorTransform;

    collar.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
   
    arms.leftUpperArm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    arms.leftForearm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    arms.leftHand.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    arms.behindBackHands.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    arms.rightUpperArm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    arms.rightForearm.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
    arms.rightHand.rgbFill.transform.colorTransform = top_back.transform.colorTransform;
   
    arms.leftUpperArm.filters = [filter];
    arms.leftForearm.filters = [filter];
    arms.leftHand.filters = [filter];
    arms.behindBackHands.filters = [filter];
    arms.rightUpperArm.filters = [filter];
    arms.rightForearm.filters = [filter];
    arms.rightHand.filters = [filter];
}

Of course, the vanilla template doesn't support handjob mode, so it probably is better to go with the loader.

Might prove useful someday thanks for the heads up.
 
Last edited by a moderator:

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.