A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
How to connect and delete in python ?
Posted: 20 December 2014 10:22 AM   [ Ignore ]  
Total Posts:  1
Joined  2012-05-06

import c4d

def main():
  op[c4d.EXPRESSION_ENABLE] = 0
  objs = op.GetObject().GetChildren()
  doc.SetActiveObject(None)

  for obj in objs:
      obj.SetBit(c4d.BIT_ACTIVE)

  c4d.CallCommand(16768)
  c4d.EventAdd()

Hello,

I’ve tried this scriptTag on a null witch “contain” two polygon object, selection work but connect and delete don’t work why ?

Profile
 
 
Posted: 22 December 2014 03:07 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  406
Joined  2006-01-24

There’s a great new developer support team and dedicated forums for Python and C++ development over at developers.maxon.net, so I suggest you post questions like this over there.

You might want to look into c4d.utils.SendModelingCommand(c4d.MCOMMAND_JOIN,[objs])

Profile