THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/09/2009 at 02:42, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Hi,
In my shader's ::Read(GeListNode *, HyperFile *, LONG) method, I'd like to detect that I'm being called in the context of a Content Browser.
I only allow one instance of the shader in the whole C4D session, so I'm displaying a message telling so when the user loads a new scene which also contains my shader.
When the user browses with the Content Browser, the browser parses all the files and will therefore display this message box for all files that contain my shader, which is really annoying to the user.
So, is there a way to detect that?
Thanks!
Best,
Ben