How to access Built-in Icons?



  • Hi,

    Is there a way to access the built-in icons in Cinema4D as an image for a button? For instance, the cube/box icon.
    There is a line in this thread:
    icon = c4d.bitmaps.InitResourceBitmap(c4d.RESOURCEIMAGE_OK)
    but the resource image page in the documentation do not include the cube icon.

    Is there another page I should look for?



  • Hi,

    you can pass just the general node IDs in most cases (instead of a specific icon ID). So you do not really have to look them up for nodes, as you can guess them in most cases. But you can find all symbols here.

    bmp = c4d.bitmaps.InitResourceBitmap(c4d.Ocube)
    c4d.bitmaps.ShowBitmap(bmp)
    

    Cheers
    zipit



  • @zipit

    I see. It's the same as the object ID. I also tried it with external plug-in icons.
    It works as expected.

    Thanks for the clarification!


Log in to reply