Support SFMLab on Patreon

O rida - Materials override helper script


Description

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:
https://steamcommunity.com/sharedfiles/filedetails/?id=291500222

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.



Comments

apekatt1234

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 9 months, 3 weeks ago

cool thing, helped me much !

Uthizarr posted 9 months, 2 weeks ago

EpicLPer

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 9 months, 1 week 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 9 months ago

Commander Shepard

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

Commander Shepard posted 3 weeks, 5 days ago


Leave a reply

You need to be logged in to leave a comment.

Support SFMLab on Patreon