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

    The <All> TP_PGroup

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 474 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 31/07/2009 at 03:49, xxxxxxxx wrote:

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

      ---------
      Hi, can anyone tell me how to get a pointer to the <ALL> TP_PGroup of a document? I can't find it.

      Thanks. Shawni

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

        Any ideas? Thx 🙂

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

          Sorry, I have no idea. I have asked the developers. I'll post the answer as soon as I get it.

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

            Please try this:

            > \> PluginSceneHook\* hook = doc->FindSceneHook(ID_THINKINGPARTICLES); \> \> if (hook && hook->GetType() == ID_THINKINGPARTICLES) \> { \>      TP_MasterSystem \*tpm = (TP_MasterSystem\* )hook; \>      TP_PGroupArray groups; \>      LONG gcnt = tpm->GetParticleGroups(NULL,&groups;,TP_GETPGROUP_ALL,FALSE); \>      //for subgroups \>      //LONG gcnt = tpm->GetParticleGroups(NULL,&groups;,TP_GETPGROUP_ALL,TRUE); \>       \>      TP_PGroup \*grp = (TP_PGroup\* )groups.GetIndex(0); //grp is the "All" group \>       \>      //to iterate \> \> //     for (LONG i=0; i<gcnt; i++) \> //     { \> //          TP_PGroup \*grp = (TP_PGroup\* )groups.GetIndex(i); \> //     } \> } \>

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

              Thanks!! 🙂

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