![]() |
Before Load Message |
Author |
![]() |
Boony2000 ![]() Member ![]() Joined: 2015 Nov 25 Online Status: Offline Posts: 12 |
![]() Posted: 2018 Sep 03 at 2:39am |
User Information: Cinema 4D Version: R19Platform: Windows ; Language(s): C++ ; PYTHON ; --------- Hi there!Is there a way to catch a file load before it gets executed, so I can check the file path? I know there is MSG_DOCUMENTINFO_TYPE_BEFOREMERGE. Is there something like that for simply opening a file? (Like there is SAVE_BEFORE and SAVE_AFTER) Cheers
Edited by Boony2000 - 2018 Sep 03 at 5:43am |
|
![]() |
|
Andreas Block ![]() Forum Moderator ![]() ![]() Joined: 2014 Oct 01 Location: Hannover Online Status: Offline Posts: 1878 |
![]() |
Hi,
first of all, this forum is going into read-only mode soon. We have started a new Plugin Café forum. So I suggest to go over there, register and continue the discussion in a new thread. Unfortunately it is not possible to get a message before a file gets loaded. These MSG_DOCUMENTINFO messages are received by SceneHooks (SceneHookData). A SceneHook itself is part of a scene or document. Before a file is loaded, there is no document and thus nobody, who could receive such a message. |
|
Cheers,
Andreas SDK Support Engineer |
|
![]() |
|
Boony2000 ![]() Member ![]() Joined: 2015 Nov 25 Online Status: Offline Posts: 12 |
![]() |
Hm ok. That's a shame.
Thanks though.
|
|
![]() |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |