The <All> TP_PGroup



  • 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



  • 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 :)



  • 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



  • 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



  • 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!! :)


Log in to reply