Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Problem with a refresh

    SDK Help
    0
    23
    14.0k
    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 09/01/2008 at 16:55, xxxxxxxx wrote:

      Howdy,

      Did you try this:

      > _
      > doc- >SetActiveTag(obj, NULL);
      > _

      I'm not sure if that works in coffee, though.

      Adios,
      Cactus Dan

      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 09/01/2008 at 17:05, xxxxxxxx wrote:

        Yes, I get an error: Incompatible values... NIL / OBJECT

        🙂

        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 09/01/2008 at 17:29, xxxxxxxx wrote:

          Howdy,

          Hmmm, that's too bad. It works that way in C++. Maybe it IS a good time to check into C++. ;o)

          Adios,
          Cactus Dan

          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 10/01/2008 at 03:42, xxxxxxxx wrote:

            Yeah, so in the future I might flood this forum with a lot of noob questions about this and that in C++. So beware, I'm comming. 🙂

            I'm probably going to change the username, lol

            Anyway, thank you for your help, guys.

            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 10/01/2008 at 03:46, xxxxxxxx wrote:

              We are currently investigating why there is a refresh missing.

              cheers,
              Matthias

              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 17/01/2008 at 08:59, xxxxxxxx wrote:

                I think I blamed COFFEE for the wrong reason. C++ has the same problem.

                > // setting the projection to UVW
                > BaseContainer container = tag- >GetData();
                > container.SetData(TEXTURETAG_PROJECTION, 6);
                > tag->SetData(container);

                Here I changed the projection of a texture tag 'tag'. Then I do a refresh with
                > EventAdd(EVENT_FORCEREDRAW);
                As already menshioned, this works only for the first time. After that I have to select and deselect the texture tag to make the changes happen. Selection/deselection another object doesn't refresh the scene, only selecting/deselection the texture tag.

                I tried several way of doing the refresh in C++.
                > tag- >Message(MSG_UPDATE);
                > mat->Message(MSG_UPDATE);
                > obj->Message(MSG_UPDATE);

                I even tried to do the select/deselect mannually as stated by Robert, but none of these work. Only the first time they work.

                And since C++ has no MultiMessage() Method I don't know how to make the changes except deleting the texture tag and creating a new one with the new projection.

                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 17/01/2008 at 09:43, xxxxxxxx wrote:

                  To change the projection here, you need to use something like this:

                  tag- >SetParameter(DescLevel(TEXTURETAG_PROJECTION), GeData(TEXTURETAG_PROJECTION_UVW), 0L);

                  You'll find that some parameters can be set using its BaseContainer while others require using SetParameter(). The latter case mainly for parameters displayed in the Attributes Manager which are stored in Description resources.

                  A better way to work with BaseContainers in C++ is this:

                  BaseContainer* bc = tag- >GetDataInstance();
                  bc->SetX(id, value);

                  Hope that helps! 🙂

                  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 17/01/2008 at 10:09, xxxxxxxx wrote:

                    Yeah, I have read about the SetParameters. But the method via BaseContainer also works. He makes the changes, but doesn't display them.

                    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 17/01/2008 at 12:06, xxxxxxxx wrote:

                      It works - up to the point where the changes aren't updated in the A.M. That's why you must use SetParameter() for this. Think of the Description as a wrapper around the BaseContainer which stores the value as well as configuration of the gui element used in the A.M.

                      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 21/01/2008 at 06:58, xxxxxxxx wrote:

                        Turned out the missing refresh is a bug.

                        cheers,
                        Matthias

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