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

    Overriding An Objects BaseDraw

    SDK Help
    0
    2
    302
    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

      On 28/07/2017 at 15:22, xxxxxxxx wrote:

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

      ---------
      Hi,

      Is there a way to prevent an object's BaseDraw output from showing up in the viewport? Similar to a Display Tag.    I want to put a tag plugin on a Spot Light and stop it from drawing in the viewport and instead use the Tag's BaseDraw to output something different.

      Dan

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

        On 31/07/2017 at 02:59, xxxxxxxx wrote:

        Hi Dan,

        unfortunately there's no direct or official way to achieve this.

        We discussed a possible solution, which is probably not ideal and also shouldn't be considered as an official approach, but you may want to consider it anyway.

        You could use MSG_MENUPREPARE to create an additional Display tag. Setting the "Style" parameter in the Display tag to "Skeleton" would reduce the light to be drawn just as a point.
        Also you may run into issues using Draw() in your TagData directly. Instead doing the drawing in a SceneHook as described in this blog article[URL-REMOVED] could help then.


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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