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