direct.directtools.DirectLights

from direct.directtools.DirectLights import DirectLight, DirectLights

Inheritance diagram

Inheritance diagram of direct.directtools.DirectLights

class DirectLight(light, parent)[source]

Bases: NodePath

__init__(self, light, parent)[source]
getLight(self)[source]
getName(self)[source]
class DirectLights(parent=None)[source]

Bases: NodePath

__init__(self, parent=None)[source]
allOff(self)[source]

Turn off all DIRECT lights

allOn(self)[source]

Turn on all DIRECT lights

asList(self)[source]
create(self, type)[source]
createDefaultLights(self)[source]
delete(self, light)[source]
deleteAll(self)[source]
getNameList(self)[source]
setOff(self, directLight)[source]

Turn off the given directLight

setOn(self, directLight)[source]

Turn on the given directLight

toggle(self)[source]

Toggles light attribute, but doesn’t toggle individual lights