Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Sent BaseObject* to BaseMaterial

    SDK Help
    0
    2
    233
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 22/06/2004 at 02:49, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.207 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I have to sent an update message from my object to my material, so I just call Message with a defined id. But it also would be nice if I'd know from which object the message was sent. The background is that the material has to update some parameters of the object, I could also just parse all referenced objects by the matassign list and update them all, but that leads to bad performance. So, if the material would know which object did sent the message, it could update just this one.
      Question: Is it save, to sent just an BaseObject* as data with the message? Or could it happen that this pointer will change within the time from sent to receive?

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 22/06/2004 at 22:19, xxxxxxxx wrote:

        I think Message() is always synchronous (unless you do something silly, like calling it from a thread), i.e. you receive the message instantaneously like a function call. So you should be safe.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post