Trouble with MCOMMAND_JOIN [SOLVED]
On 19/11/2014 at 14:39, xxxxxxxx wrote:
I'm trying to create a spline that is made up of many segments.
In the first generation, it creates a simple spline. In the following generations, I was trying to perform a "Connect" command between the first spline created and the newly created ones.
It is not working. I only get a single spline :-(
Here is my code:
set an empty spline
for br in range(branches) :
# my spline calculation routine. It returns a list of vectors
for i,pt in enumerate(spline_points) :
if result is not False:
What could be wrong. Any help would be great.
On 20/11/2014 at 10:38, xxxxxxxx wrote:
the list argument is not used by MCOMMAND_JOIN. To define the objects you want to merge you have to create a parent/child hierarchy:
nullObject = c4d.BaseObject(c4d.Onull) spline_a.InsertUnder(nullObject) spline_b.InsertUnder(nullObject) res = c4d.utils.SendModelingCommand(command=c4d.MCOMMAND_JOIN,list=[nullObject])
On 20/11/2014 at 13:48, xxxxxxxx wrote:
Thank you very much, Sebastian.
That should be stated clearly in the SDK.
I ended up doing the creation of the splines and segments by hand.
But I will have that information into account, next time.