Navigation

    • Register
    • Login
    • Search
    1. Home
    2. kilian
    3. Posts
    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Posts made by kilian

    RE: Get asset from asset browser python

    @ferdinand
    Thanks a lot Ferdinand for this detailed and complete answer! This is exactly what I hoped to do! I tested the code and it works great!

    Since a few of the fixes you use are not recommended, i will solve it in another way for now, until it gets fixed for python, or i switch to C++. I got my plugin doing what i want, for the moment.

    Pretty sure this will also help someone else in the future.

    Have a nice day!

    posted in Cinema 4D SDK •
    RE: Get asset from asset browser python

    @dunhou
    Thank you so much for your answer!
    I might be mistaken, but I don't think this is usable because i don't know the "assetId". The script has to find out which asset is selected, not dragged, just selected.
    Or am i missing something?

    posted in Cinema 4D SDK •
    Get asset from asset browser python

    Hi,

    I can't seem to figure out how to get a reference to selected items in the asset browser.
    Ideally I want to select a few textures in the assetbrowser, press the script button, and then use the filepaths to plug into texture channels.
    How do I access the currently selected asset, and if that's not possible using python, how do i go about dragging them into something to acces them?

    Thank you!

    posted in Cinema 4D SDK •