script log functionality / grabbing cmd id stream
-
On 05/05/2013 at 21:00, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ; Mac OSX ;
Language(s) : C++ ; PYTHON ;---------
hi,i need to replicate the c4d script log functionality or get hold of that ID stream
generated by the script log. bluntly said i have no idea where to start. there are
a bunch of command related methods in the c4d namespace in python, but none
of them is for polling constantly the last command id. also the coremessage stream
does not seem to include the data i am looking for (although i did not look into the
pyobjects contained in the data bc yet).so where do i have to look ? is it possible ? are core messages the solution ? please
also note that i did deliberately put this into the cpp section, if there is only a cpp
solution for that problem. thanks for reading,happy rendering,
ferdinand -
On 06/05/2013 at 14:26, xxxxxxxx wrote:
i could not find anything useful in the cpyobjects either. for raising the extrude tool i do get.
* 200000073 * 689 1298360625 ###### * None 1298360626 ###### * None * -826267 * 689 1298360625 ###### * None 1298360626 ###### * None * 1026901 * 689 1298360625 ###### * None 1298360626 ###### * None * 604 * 689 1298360625 ###### * None 1298360626 ###### * None * 1018490 * 690 1298360625 ###### * None 1298360626 ###### * None * 1018484 * 690 1298360625 ###### * None 1298360626 ###### * None * 1685218156 * 691 1298360625 ###### * None 1298360626 ###### * None
could someone point me into the correct direction please
-
On 08/05/2014 at 14:01, xxxxxxxx wrote:
Yeah, I'd be curious to know this as well. I'm trying to detect Undo/Redo presses so that I know when it's appropriate to update my dialog from data stored in a container.
-
On 09/05/2014 at 02:49, xxxxxxxx wrote:
The best you can get is listening to the MSG_DOCUMENTINFO message. There's pretty much info
you can get from it. Afaik, it's only sent to nodes in the current document however, so a MessageData
plugin would not be enough.Here
[URL-REMOVED]'s the C++ documentation for the DocumentInfoData that is passed for this message. I'm not sure
if the data is even wrapped for Python, need to check this out.-Niklas
[URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.