Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > PYTHON Development
  New Posts New Posts
  FAQ FAQ  Forum Search

get the project change in core message

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


Joined: 2013 Apr 17
Online Status: Offline
Posts: 176
Direct Link To This Post Topic: get the project change in core message
    Posted: 2014 Jan 27 at 1:27pm
Hey i try to get the Message that the project change 

the question is what is the right id 

def CoreMessage(self, id, bc):
if id == xx: #chang projekt

Back to Top
s_rath View Drop Down
Member
Member


Joined: 2010 May 04
Location: Ne / Düsseldorf
Online Status: Offline
Posts: 319
Direct Link To This Post Posted: 2014 Jan 27 at 1:28pm
Hi,

try c4d.EVENT_MSG

Cheers, Seb
http://www.twitter.com/_s_rath
Back to Top
conner View Drop Down
Member
Member


Joined: 2013 Apr 17
Online Status: Offline
Posts: 176
Direct Link To This Post Posted: 2014 Jan 27 at 1:50pm
thx seb 

class stage_message(plugins.MessageData):
def CoreMessage(self, id, bc):
if id == c4d.EVENT_MSG:

AttributeError: 'module' object has no attribute 'EVENT_MSG'
Back to Top
conner View Drop Down
Member
Member


Joined: 2013 Apr 17
Online Status: Offline
Posts: 176
Direct Link To This Post Posted: 2014 Jan 29 at 12:55pm
do I understand the CoreMessage wrong ? 
Back to Top
NiklasR View Drop Down
Member
Member


Joined: 2010 Dec 13
Location: Germany
Online Status: Offline
Posts: 2575
Direct Link To This Post Posted: 2014 Jan 29 at 2:48pm
Try c4d.EVMSG_CHANGE
Back to Top
conner View Drop Down
Member
Member


Joined: 2013 Apr 17
Online Status: Offline
Posts: 176
Direct Link To This Post Posted: 2014 Jan 29 at 2:53pm
thx niklas 

the change message will call often - i need only the project change - 
Back to Top
NiklasR View Drop Down
Member
Member


Joined: 2010 Dec 13
Location: Germany
Online Status: Offline
Posts: 2575
Direct Link To This Post Posted: 2014 Jan 30 at 2:21am
What do you understand under the term "project change"?
Back to Top
conner View Drop Down
Member
Member


Joined: 2013 Apr 17
Online Status: Offline
Posts: 176
Direct Link To This Post Posted: 2014 Jan 30 at 3:39am
menu - window - switch between different projects 


Back to Top
NiklasR View Drop Down
Member
Member


Joined: 2010 Dec 13
Location: Germany
Online Status: Offline
Posts: 2575
Direct Link To This Post Posted: 2014 Jan 30 at 3:42am
So you want to know when the user switched to another project? It sounded like you want to know when a project was changed, ie. modified.
Back to Top
Yannick Puech View Drop Down
Forum Moderator
Forum Moderator


Joined: 2011 Apr 13
Location: Spain
Online Status: Offline
Posts: 1143
Direct Link To This Post Posted: 2014 Jan 30 at 9:03am
This topic has been discussed several times in the forum. For example in this thread:

MAXON
Developer Support
Back to Top
conner View Drop Down
Member
Member


Joined: 2013 Apr 17
Online Status: Offline
Posts: 176
Direct Link To This Post Posted: 2014 Jan 31 at 1:50am
thanks to all of you . got it 
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.110 seconds.