Navigation

    • Register
    • Login
    • Search
    1. Home
    2. byoneukp
    B

    byoneukp

    @byoneukp

    0
    Reputation
    2
    Posts
    3
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    byoneukp Follow

    Best posts made by byoneukp

    This user does not have any upvoted posts yet.

    Latest posts made by byoneukp

    RE: Trying to get the real path of an Asset Browser url

    Thanks, got it to work. Snippet I'm using:

    def getPathFromAsset(asset):
        repository = maxon.AssetInterface.GetUserPrefsRepository()
        assetId = maxon.Id(asset)
        assetDescription = repository.FindLatestAsset(maxon.AssetTypes.File(), assetId, maxon.Id(), maxon.ASSET_FIND_MODE.LATEST)
        return assetDescription.GetUrl()
    
    print(getPathFromAsset("file_e55289b63600ab3c"))
    
    posted in Cinema 4D SDK •
    Trying to get the real path of an Asset Browser url

    Asset Browser texture paths are not file system paths and come in an obfuscated format like this:

    asset:///file_65161321321e59b~.jpg

    Is there a way to get the actual absolute system path of asset:/// or assetdb:/// urls via scripting using the python api? if not, the c++ api?

    Seems to be a basic thing that should be really easy to do but I can't find an obvious way.

    Thanks!

    posted in Cinema 4D SDK •