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

    Display Tag behaves cocky :-/

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 497 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 16/03/2009 at 17:57, xxxxxxxx wrote:

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

      ---------
      Hi,

      I create a Display tag an attach it to an object. Works fine.
      I set the WDisplay Mode in the tag to "Box". Works fine.
      I activate the WDisplay mode in the tag by setting the checkbox to TRUE. Nothing happens, the checkbox is still set to FALSE??

      > \> // Create Display Tag \> BaseTag \*dt = BaseTag::Alloc(Tdisplay); \> \> // Set Display mode \> dt->GetDataInstance()->SetBool(DISPLAYTAG_AFFECT_DISPLAYMODE, TRUE); // No effect! \> dt->GetDataInstance()->SetBool(DISPLAYTAG_AFFECT_BACKFACECULLING, TRUE); // No effect, either!! \> dt->GetDataInstance()->SetLong(DISPLAYTAG_WDISPLAYMODE, DISPLAYTAG_WDISPLAY_BOX); // Works \> \> // Attach Tag to object "cl" \> cl->InsertTag(dt); \>

      Thanks for any help!

      Greetings,
      Jack

      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 16/03/2009 at 20:25, xxxxxxxx wrote:

        Have you tried SetParameter() instead?

        dt->SetParameter(DescLevel(DISPLAYTAG_AFFECT_DISPLAYMODE,DTYPE_BOOL,0L), GeData(TRUE), DESCFLAGS_DONTCHECKMINMAX);

        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/03/2009 at 05:18, xxxxxxxx wrote:

          Ah! No, I didn't try that. Will try now 🙂
          Thanks, Robert!

          Cheers,
          Jack

          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/03/2009 at 05:22, xxxxxxxx wrote:

            Yippie! Works! Thanks again!

            I still have no idea why I can acces most of the parameters using the DataInstance, and why I have to access some parameters with SetParameter(). Is that some kind of legacy stuff from very old API versions?

            Cheers,
            Jack

            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/03/2009 at 08:15, xxxxxxxx wrote:

              Howdy,

              I think it may be because some parameters are part of a structure, like the X-Ray parameter is part of the ObjectColorProperties structure and can't be accessed through the regular data container. But that is just one example.

              Adios,
              Cactus Dan

              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 19/03/2009 at 04:48, xxxxxxxx wrote:

                It really depends if parameters are stored in the node's container or if they are handled through the node's SetD/GetDParameter() methods for instance.

                cheers,
                Matthias

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