Support SFMLab on Patreon

O rida - Materials override helper script


This script will greatly reduce the time you spend on applying override materials, especially for those of you who want to re-use the same materials override setup across multiple projects. This script will allow you to load/save override materials configurations as json-files.

If you don't know about override materials, there's a good tutorial here:

Once added to SFM, the script can be accessed from the animation set rig menu.

Basic usage:

  1. Right click on the animation set you want to apply override materals to.
  2. Select the "Add override materials" option
  3. Right click the animation set again
  4. Choose Rig->Orida
  5. Select what you want to do from the O rida dialog.

For more information on loading/saving override configurations, please refer to the "Help" option.

Included templates:

Four template files are included. These can be used to apply the same common attribute to all materials. The main idea behind these is to remove the time it takes to manually apply these attributes using the clunky GUI provided by the element viewer.

  • template_all_alpha.json:
    Adds the attribute $alpha as a float and sets it to 0 for all materials. This will probably render the animation set (or at least the majority of it) invisible. This can come in handy when you want to hide materials but don't know which one, since deleting attributes using the element viewer is way quicker than adding new ones. This philosophy applies to the other templates as well.

  • template_all_empty_basetexture.json:
    Adds the attribute $basetexture as a string and sets it to "" for all materials. This will render the animation set as untextured. override texture files can be set from the element viewer.

  • template_all_color_black.json
    Adds the attribute $color as a color and sets it to RGBA(0,0,0,255) for all materials. This will make the animation set all black. You can specify colors for all materials in the element viewer.

  • template_all_phong.json
    Adds the attributes $phongboost and $phongexponent as floats and sets them to 0 for all materials. You can add/remove/edit the values for each individual material from the element viewer.



looks cool. as of now its not possible i think to overwrite the vmt file atributes, would it be possible to make a scrit that enables the texture to read another vmt file without having to re-wright the original one?

apekatt1234 posted 1 year, 8 months ago

cool thing, helped me much !

Uthizarr posted 1 year, 8 months ago


It's a really nice idea but I'd suggest renaming this thing to something more recognizable. Nice work tho, was waiting for something like this! :)

EpicLPer posted 1 year, 8 months ago

how to make it work? i paste it to SourceFilmmaker\game\platform\scripts\sfm\animset and start the sfm, follow the instruction and no pop up dialog when i choose Orida rig.. help?

Loginman69 posted 1 year, 7 months ago

Commander Shepard

I'm Commander Shepard, and this is my favorite tool on SFMLab.

Commander Shepard posted 11 months, 3 weeks ago


This script saved me tons of time. Thank you so much!

DesireSFM posted 3 months ago

Leave a reply

You need to be logged in to leave a comment.

Support SFMLab on Patreon