Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
On 03/08/2009 at 04:44, xxxxxxxx wrote:
Any ideas? Thx
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
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); \> // } \> } \>
\> 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); \> // } \> } \>
On 26/08/2009 at 08:46, xxxxxxxx wrote:
Thanks!!