On 11/11/2017 at 06:44, xxxxxxxx wrote:
Is it possible to use an animated gif as a user data icon?
On 13/11/2017 at 02:42, xxxxxxxx wrote:
I guess you are talking about using an animated GIF in a BitmapButton or as a registered icon for a plugin? No, that is not possible.
On 13/11/2017 at 04:56, xxxxxxxx wrote:
Okay. Thanks. That would be a cool feature.
On 13/11/2017 at 05:13, xxxxxxxx wrote:
Actually you can do it. But it wouldn't be a Maxon recommended way. And I also do not recommend to do it, for some perormance reason and also as c4d user I will hate to have a GIF as an icon. Since you can easily screw up all the UI very easily with those scripts.
On 13/11/2017 at 05:37, xxxxxxxx wrote:
Yeow! Excellent! Thanks for providing this. I will test it out.
On 13/11/2017 at 05:40, xxxxxxxx wrote:
gr4ph0s, are you available for freelance work?
On 13/11/2017 at 06:01, xxxxxxxx wrote:
I sent you a pm about freelancing.
Another point I didn't mention, the trick used in the post of Niklas is only possible because c4d.gui.Geticon() return a reference to the actual c4d.BaseBitmap of the icon and not a copy. This behavior may be changed in future, or not. Its in the hand of Maxon.
Otherwise you would have to Unregister(c4d.gui.UnregisterIcon) old icon then Register back the new icon(c4d.gui.RegisterIcon), then refresh the UI.