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

    Setting Visibility in Coffee?

    SDK Help
    0
    3
    388
    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 27/05/2003 at 00:44, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:   Windows  ; Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I know this topic has been up before, but being a complete beginner at coffee/c++, I couldn´t figure those old posts out.

      What I´m trying to do is to create a DisplayTag for an Object. I can add the Tag without a problem, but couldn´t find a way to set the Visibility Value itself. After poking around in both the sdk (which only mentions a few Containers) and the forums I found some posts, where the complete set of Containers for this Tag are mentioned. But, when I try to set the DISPLAYTAG_VISIBILITY or DISPLAYTAG_AFFECT_VISIBILITY, Cinema says that it expects a function or variable?

      the code I used:

      var visitag=new(DisplayTag);  
      var visibc=new(BaseContainer);   
      visibc->SetData(DISPLAYTAG_VISIBILITY,100.0); //Thats the line Cinema complains about  
      visitag->SetContainer(visibc);
      

      The method works for a PhongTag I also add to the objects, so I think (?) the code is correct.

      Could someone point me in the right direction? Any help would be appreciated.

      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 27/05/2003 at 23:39, xxxxxxxx wrote:

        What part of the line does it complain about? If it's DISPLAYTAG_VISIBILITY that doesn't exist you can try the raw value from Tdisplay.h, 1006.

        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 28/05/2003 at 00:24, xxxxxxxx wrote:

          ok, I feel like an idiot now 🙂 I could swear I tried it with the raw value method before posting and it didn´t work... Thanks a lot!

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