Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. byoneukp
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    byoneukp

    @byoneukp

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

    byoneukp Unfollow Follow

    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
      B
      byoneukp
    • 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 c++ maxon api python s26
      B
      byoneukp