Change icon of object-plugin
On 26/03/2013 at 05:11, xxxxxxxx wrote:
I was just wondering if it's possible to change the icon of an object-plugin depending on its function. A good example would be the connector-object which changes it's icon depending if it works as a hinge, a cardan or slider. Is this possible with python or limited to the C++ SDK?
To go even a bit further: is it possible to give an icon a color overlay like the null and light-objects are now able to?
On 26/03/2013 at 05:17, xxxxxxxx wrote:
ObjectData.Message() and MSG_GETCUSTOMICON
On 26/03/2013 at 06:12, xxxxxxxx wrote:
Thanks Niklas for the hint.
It works, although I'm not sure if it is the correct way (this is still without checking for any mode-change, only for testing if it's working) :
def Message(self, node, type, data) : if type == c4d.MSG_GETCUSTOMICON: data['bmp'] = icon1 data['filled'] = True return True
Is this the right way to do it (because it looks way more complicated in C++ ... as everything does)?