nuke.OutputContext

class nuke.OutputContext

Bases: pybind11_object

Describes a context in which expressions can be evaluated.

Construct with a frame number. Construct with a frame number and view.

Methods

frame

frame() -> float

setFrame

setFrame(f) -> True

setView

setView(n) -> True

view

view() -> int

viewFromName

viewFromName(name) -> int

viewcount

viewcount() -> int

viewname

viewname(n) -> string

viewshort

viewshort(n) -> string

frame() float

Return frame value.

setFrame(f) True

Set frame value. The f argument is a float.

setView(n) True

Set view number. The n argument is an integer in the range of 0 to number of views.

view() int

Return view number.

viewFromName(name) int

Returns the index of the view with name matching the argument name or -1 if there is no match.

viewcount() int

Return number of views.

viewname(n) string

Return name of the view. The n argument is an integer in the range of 0 to number of views.

viewshort(n) string

Return short name of the view. The n argument is an integer in the range of 0 to number of views.