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

    Custom Material preview scene

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 179 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 27/11/2006 at 10:44, xxxxxxxx wrote:

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

      ---------
      Hi,

      I would like to use an own preview scene for my material preview. Can somebody tell me how to accomplish that? The Material Preview message system is very confusing.

      The standard scene contains an environement object. In the according message call MATPREVIEW_PREPARE_SCENE, I copy my material into the scene and assign it to the according texture tag.

      I already did this in a former material of mine, but the old material created a hardcoded environement and doesn´t use a custom scene from a scenefile.

      It´s unclear to me which messages must be handled in such situation which don´t and what the flags are set to, to simply add my custom scene file to the list and remove all other standard scenes and make it actually work.

      because I see no result. I tried several combinations of the according flags. Am also using AddUserPreviewScene.

      To summarize: I have a custom scenefile, want this one to be used in the material preview and I want to copy over my material to the preview cache scene.

      Thanks very much for any help!

      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 27/11/2006 at 11:18, xxxxxxxx wrote:

        Argh, got it. Too stupid to simply load the scenefile instead in MATPREVIEW_MODIFY_CACHE_SCENE. Doh!

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