Might be a simple error as my Python is a little rusty. Any ideas appreciated.
import c4d def main(): cycleObjects(doc.GetActiveObjects(c4d.GETACTIVEOBJ ECTFLAGS_0)) c4d.EventAdd() def cycleObjects(objects): for obj in objects: cleanTracks(obj) if (obj.GetChildren()!= None): cycleObjects(obj.GetChildren()) def cleanTracks(object): for track in object.GetCTracks(): trackName=track.GetName() print trackName # this seems to work... if (trackName=="Scale.Y"):## this part not working yet! track.Remove() if __name__=='__main__': main()
As usual the forum here is eating the code but the part I'm having trouble is the last bit, which is commented..