Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

Before Load Message

Author
Message
  Topic Search Topic Search
Boony2000 View Drop Down
Member
Member


Joined: 2015 Nov 25
Online Status: Offline
Posts: 12
Direct Link To This Post Topic: Before Load Message
    Posted: 2018 Sep 03 at 2:39am

User Information:

Cinema 4D Version:   R19 
Platform:   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
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1878
Direct Link To This Post Posted: 2018 Sep 04 at 2:30am
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
Back to Top
Boony2000 View Drop Down
Member
Member


Joined: 2015 Nov 25
Online Status: Offline
Posts: 12
Direct Link To This Post Posted: 2018 Sep 04 at 2:50am
Hm ok. That's a shame.
Thanks though.
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.