Giter Club home page Giter Club logo

blenderfortnitematerial's Introduction

Blender 2.80 Fortnite .mat Auto Loader

This is an automatic .mat loader, it sets up a .mat file into a blender material which you can then apply to a object, currently only works when you move .mat's to the same folder as all the textures

Supports Diffuse, Normal, Specular & Emissive textures

How to "Setup"

  1. Download the .py file (or click it, then click raw and ctrl+a -> ctrl+c it)
  2. Open blender
  3. Go to the scripting tab, and drag the .py file into the large text box (or paste the code into there from earlier)

How to use

  1. Once you have it imported into the scripting tab, you should setup your exported .mat and exported .tga textures (you must use tga at the moment)

  2. Move the .mat file you want to import to the same folder as the textures (Majority of cosmetics should do this, you can also just drag the textures into the same folder if they are split up, but this is made to deal with the most common case) alt text

  3. Copy the full path of the .mat file, this can be done by shift right clicking in windows explorer and clicking "Copy As Path"

  4. In the scripting tab in blender, past the full path after "DotMatPath = r", It should look something like:

    DotMatPath = r"C:\PathToUmodelEtc\material.mat"

  5. There are two other options available:

    outputMaterialName used to determine the output material name, leave blank (outputMaterialName = "") to make it name it the same as the file

    ApplyMaterialToCurrentlySelectedObject - This one should be pretty self explanatory, make sure you capitilze the first letter in True or False

  6. Press "Run Script" at the top right

Demonstration of usage

https://i.imgur.com/4OMVs4T.mp4

Created on blender 2.80, other versions not verified.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.