Giter Site home page Giter Site logo

Comments (12)

rdeioris avatar rdeioris commented on July 22, 2024 1

Check "get_content_dir" (py_unreal_engine_get_content_dir)

from unrealenginepython.

rdeioris avatar rdeioris commented on July 22, 2024

Which are the UAssetImportData methods that you need most ? last time i checked the only useful one was the package path (that can be retrieved with a call to get_outer()) so i did not investigated more. Eventually, we could have a more low-level get_assets() functions returning a dictionary-like object with additional infos.

from unrealenginepython.

osstony avatar osstony commented on July 22, 2024

Ah ok, I do only need the path to the file on disk, I will look at using get_outer() instead.

If I do find additional classes that need to be fleshed out, what would be the approach you'd like me to take for adding them in?

from unrealenginepython.

osstony avatar osstony commented on July 22, 2024

Which method were you using on get_outer() to find the file path? I am using that and getting back a UPackage object which doesn't have any exposed properties or functions other than ExecuteUbergraph. Is there an exposed function that has been added to the Python UObject I am missing?

from unrealenginepython.

rdeioris avatar rdeioris commented on July 22, 2024

This should be useful: #36

from unrealenginepython.

osstony avatar osstony commented on July 22, 2024

Ah, that is the game path, I need the file path of the original file the asset was imported from. For example I'll want these methods from UAssetImportData:

ResolveImportFilename
GetFirstFilename

from unrealenginepython.

rdeioris avatar rdeioris commented on July 22, 2024

i think it is easier to get the package filename from the UPackage class:

https://docs.unrealengine.com/latest/INT/API/Runtime/CoreUObject/UObject/UPackage/index.html

a "package_get_filename()" method could be useful

from unrealenginepython.

osstony avatar osstony commented on July 22, 2024

Ok I'll look at adding that to the UObject. Do we have anything yet for getting different paths offered by FPaths? Should we add that to the UObject as well?

from unrealenginepython.

osstony avatar osstony commented on July 22, 2024

UPackage.FileName still returns the game path and not the path to the fbx file on disk. I'm going to add a quick function to get a dictionary of AssetImportData info.

from unrealenginepython.

osstony avatar osstony commented on July 22, 2024

#49 has some of what was discussed here plus some additions.

from unrealenginepython.

osstony avatar osstony commented on July 22, 2024

I left an updated version of this in #56. It returns additional data like timestamp and file hash plus could support multiple files like the Unreal API does.

from unrealenginepython.

osstony avatar osstony commented on July 22, 2024

This should be all set, closing.

from unrealenginepython.

Related Issues (20)

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.