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

    Cloth Tag Calculate Cache

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 537 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 23/06/2007 at 05:12, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.111 
      Platform:    Mac  ;  
      Language(s) :

      ---------
      Hello,

      is there a way to start 'calculate cache' for a cloth object through the sdk?
      I also want to set the 'Cloth Engine' checkbox.
      I tried
      GeData t_data;
      t_data = ...
      SetParameter(DescID(CLOTH_USE),t_data,0);
      But the compiler tells me that CLOTH_USE dosn't exist.
      (CLOTH_USE is the ID for the checkbox according to the Script Manager).

      Thanks in advance!

      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 02/07/2007 at 01:23, xxxxxxxx wrote:

        Is there no solution to these two problems? No way to calculate cache automatically or auto-select the cloth engine checkbox?

        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 02/07/2007 at 02:44, xxxxxxxx wrote:

          not without some hacks I'm afraid.

          cheers,
          Matthias

          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 03/07/2007 at 01:13, xxxxxxxx wrote:

            So what kind of hacks must be done to achive this?

            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 04/07/2007 at 13:56, xxxxxxxx wrote:

              No hacks should be needed, the checkbox should be just normal data so SetParameter will be fine but you must include the correct header with the ID defined. As for the command, you just need to send the right message to the tag using MSG_DESCRIPTION_COMMAND. Again, in the resource header will be the ID for this also.

              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 05/07/2007 at 05:40, xxxxxxxx wrote:

                The missing header file was clothtag.h. After including it, SetParameter worked. Sounds easy but I didn't find it when I was first looking for it...
                The following code causes the cloth tag to start caching:

                  
                DescriptionCommand* data = gNew DescriptionCommand;  
                data->id = DescID(CLOTH_DO_CALCULATE);  
                clothTag->Message(MSG_DESCRIPTION_COMMAND, data);  
                gDelete(data);  
                

                Finally it works! Thank you very much for your help!

                One more short question: I'm looking for the Constant identifying a cloth tag to access it via object->GetTag. At the moment I do this via obj->GetTag(100004020). But I am sure there must be something like tcloth.

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