Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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"))
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?
asset:///
assetdb:///
Seems to be a basic thing that should be really easy to do but I can't find an obvious way.
Thanks!