Qcing $texturegroup skinfamilies

Well I wanted to learn how to make a model for SDK with 2 skins on it but I am not sure whats not working right.

heres my qc-

$modelname “props/Skin.mdl”
$body mybody “Skin.smd”
$staticprop
$surfaceprop “metal”
$cdmaterials “models/props”
$scale 1
$sequence idle “Skin.smd” loop fps 1

$texturegroup “Skin”

{"Red"} 
{"Blue"} 

$collisionmodel “Skin.smd”

$automass
$concave

$keyvalues
“prop_data”

   "base"  "Metal.Medium"

When I load SDK I this error when it trys to load another skinfamily

error model attempted to load more or one VMTs it can’t find…

Is it because I am using Blender or just the way I got my textures on the model or just bad QC all together?
If anyone here knows my problem or is a master at QCing Id like to know how I should fix my problem!

considering you’re giving the model two different textures, you should have two .vmts

What are the names of these .vmts, and where have you put them?

I do have 2 vtms
red
blue

or are they sopost to have the same name?

The textures need to have similar names to the original texture that’s going to change. So if your main texture is “texture”, the other ones should be like “texture2” or “texture3”. So stuff like “red” or “blue” won’t work.

so like
red
red1
right?

-Snip- The gentleman above explained it

That should work

textures names themselves do not have to be similar at all. They can be named anything at all as long as you call the VMT’s correct in the same order.

Correct syntax for texturegroups



$texturegroup "texturegroup"
{
{ "Originaltex1" , "originaltex2" }
{ "replacementfor1" , "replacementfor2" }
}


Or



$texturegroup "texturegroup"
{
{
originaltex1
originaltex2
}
{
replacementfor1
replacementfor2
}
}


Here’s an actual in use example



$texturegroup "Variations"
{
    {
        c_sera-ancient-arms_d
        c_sera-ancient-boots_d
        c_sera-ancient-gloves_d
        c_sera-ancient-helmet_d
        c_sera-ancient-pelvis_d
        c_sera-ancient-shoulders_d
        c_sera-ancient-thighs_d
        c_sera-ancient-torso_d
        c_sera-ancient-wings_d
    }
    {
        i_sera-ancient-arms-var1_d
        i_sera-ancient-boots-var1_d
        i_sera-ancient-gloves-var1_d
        i_sera-ancient-helmet-var1_d
        i_sera-ancient-pelvis-var1_d
        i_sera-ancient-shoulders-var1_d
        i_sera-ancient-thighs-var1_d
        i_sera-ancient-torso-var1_d
        i_sera-ancient-wings-var1_d
    }


}


The OP’s problem was that his $texturegroup was incorrectly written.

So in his case

considering the** original texture on the model** is Red.vmt the correct syntax would be.



$texturegroup "skin"
{
{ "Red" }
{ "Blue" }
}


Overall the OP is missing a bunch of brackets in his QC. For physics, and keyvalues. Not just txturegroups.

well i got the skins working now
but its just showing Blue skin for skin 1
but when i click on skin 2 its the same blue skin
what did i do wrong now?

is it how i am exporting the model from blender?

NVM I GOT IT fixed