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
    • Recent
    • Tags
    • Users
    • Login

    Force MATPREVIEW_MODIFY_CACHE_SCENE

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 536 Views
    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 Offline
      Helper
      last edited by

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

      On 22/06/2009 at 10:38, xxxxxxxx wrote:

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

      ---------
      Hi,

      is there a way to force MATPREVIEW_MODIFY_CACHE_SCENE message to update for a custom Material Preview? It is only called once when the material is updating for the first time, then this message is never called again. I´d need to update it so I can modify the cache scene again.

      Thx

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

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

        On 26/06/2009 at 06:45, xxxxxxxx wrote:

        The ParticleVolume example handles this through the MATPREVIEW_PREPARE_SCENE message. Depending on the preview settings it changes the emitter settings of the custom preview scene.

        cheers,
        Matthias

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

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

          On 26/06/2009 at 10:57, xxxxxxxx wrote:

          Yes, I also use MATPREVIEW_PREPARE_SCENE to change settings of the preview scene, but is it save to modify the scene in this message? I mean like removing objects etc.?

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

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

            On 15/12/2009 at 07:44, xxxxxxxx wrote:

            Any chance of an answer to this after 5 months? I really need to know if there is a way to safely recall MATPREVIEW_MODIFY_CACHE_SCENE. I cannot simply use MATPREVIEW_PREPARE_SCENE as I need to first set up the custom cache scene in MATPREVIEW_MODIFY_CACHE_SCENE and then change settings (just like the particleVolume example does).

            thanks in advance.

            Edit: Well, of course if it is valid and safe to set up a completely new custom scene (copying objects which load custom data and materials from a completely different scene) in MATPREVIEW_PREPARE_SCENE, I´d also like to know. But my assumption is that this is what MATPREVIEW_MODIFY_CACHE_SCENE is for. But in any case, I simply need to remove all previous objects and Materials I inserted in MATPREVIEW_MODIFY_CACHE_SCENE and load new ones.

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

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

              On 17/12/2009 at 14:11, xxxxxxxx wrote:

              It seems to be safe to setup a complete scene in MATPREVIEW_PREPARE_SCENE. In any case I've asked the developers about this some days ago. I'll let you know as soon as I got an answer.

              cheers,
              Matthias

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

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

                On 17/12/2009 at 16:50, xxxxxxxx wrote:

                Thanks Matthias, that would currently be perfect Timing for me! Looking forward to the confirm (either positive or negative).

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