Sven , Alex suggestion is spot on. If you need to look at the code it's on the api files (e.g. rna_sensors.c)
-- Dalai On Jun 28, 2011 10:07 PM, "Alex Fraser" <[email protected]> wrote: > Hi Sven, > > ----- Original Message ----- >> From: "Sven von Brand" <[email protected]> >> >> I added the logic brick with >> bpy.ops.logic.sensor_add(type='ALWAYS',name="Name",object="Cube") and >> supposed there was something like >> bpy.ops.logic.link(sensor="",sensobject="", controller="", >> contobject="") but could not find anything like it. > > Try something like this: > > ob.game.sensors['Name'].link(ob.game.controllers['And']) > > where ob is the object you added the bricks to. > > Cheers, > Alex > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
