THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/03/2011 at 11:36, xxxxxxxx wrote:
Hi everyone,
has anyone here managed to create a TP Group? I guess in theory it should be simple, but... well, this is what I tried:
import c4d
def main() :
tpGroup = tp.AllocParticleGroup()
tpGroups = tp.GetParticleGroups(None,c4d.TP_GETPGROUP_ALL)
tpAllGroup = tpGroups[0]
tp.SetPGroupHierarchy(tpGroups[0],tpGroup,c4d.TP_INSERT_UNDERFIRST)
if __name__=='__main__':
main()
What I get is an error in PyTPGroup.cpp:341: bad argument to internal function
Does this look familiar to anyone?