passNumber
passNumber
Note:
Each position (passNumber)
can
hold only one filter.
gets/sets the position of the 2D filter in the stack of 2D filters.
Type: integer
Range: 0 - 100
Sample
Code
################ Get passNb
# get controller
controller = GameLogic.getCurrentController()
# get actuator attached to the controller named act
act = controller.actuators["act"]
# get stack position of the filter
stackPos = act.passNumber
################ Set passNb
# get controller
controller = GameLogic.getCurrentController()
# get actuator attached to the controller named act
act = controller.actuators["act"]
# set stack position of the filter
act.passNumber = 3
|