How to create new TP_Group on Python and add to this group the particles of the other group ?

http://chicagoc4d.com/C4DPythonSDK/index.html not understand on this issue without examples.

Darter

11-16-2012, 01:51 PM

This example creates a new particle group and adds a node to the XGroup with the new group assigned. Use the node to pass particles to the new group. It may be necessary to fix the forum-trashed formatting.

# Select XPresso tag and run script
# New group inserted at end of Partcile Groups list
# PGroup node added to XGroup with new group assigned

The script now fills in any gaps in the numbers of the existing groups, rather than always following on from the highest. Also, each new group is added to the end of the list (but will not be added as the child of a selected group).

Ferrisgeneral

11-17-2012, 04:41 PM

Is it possible to connect the ports dynamically created nodes ?

Darter

11-18-2012, 02:03 AM

This example uses explicit paths to these nodes with these positions in the X-Manager:
XGroup
- PStorm
- PGroup

The PStorm's Particle Birth port is connected to the PGroup's Particle port.

Explicit paths would not be necessary for e.g. connecting a dynamically created node to another node located by traversing the node master.

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com