Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/PyPRP-HEAD/PyPRP/prp_DrawClasses.py   PyPRP(Download)
                                    if str(a.Key.name) == str(obj.name) or str(a.Key.name) == dataname:
                                        print "     Connecting Light",str(a.Key.name),"to lamp",str(obj.name)
                                        lightgroup.objects.link(obj)
 
                                for a in icicle.fPermaProjs.vector:
                                    if str(a.Key.name) == str(obj.name) or str(a.Key.name) == dataname:
                                        print "     Connecting Light",str(a.Key.name),"to lamp",str(obj.name)
                                        lightgroup.objects.link(obj)

src/p/y/PyPRP-HEAD/PyPRP/prp_Wizards.py   PyPRP(Download)
                    lightObj = lights[lightName]
                    print "  Adding light",lightName,"to group"
                    lightGroup.objects.link(lightObj)
                # Assign the group to the material
                mat.lightGroup = lightGroup