Skip to content

Video texture #51

@andrey5351

Description

@andrey5351

I'm trying to set the video as the initial screensaver, but all attempts end in the line "logic.video = texture.Texture(obj, 0,0)" with the message: "Error: Python(Camera), Python script error
Traceback (most recent call last):
File "LoadVideo.py", line 11, in
logic.video = texture.Texture(obj, 0,0)
RuntimeError: Texture is not available"
Or "TypeError: the 'str' object cannot be interpreted as an integer
Error: Python(Plane), Python module cannot be imported
Traceback (the last call was the last one):
File "C:\Users\vomif\Desktop\UPBGE\Rudnik\Molibden3_2 .blend\Plane.py ", line 8, in
own["tex"] = texture.Texture(own, "IMgrass.png")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error type: the 'str' object cannot be interpreted as an integer" — if I try to set a real texture: "own["tex"] = texture.Texture(own, "IMgrass.png")". The fragments are taken from various sources of script writing examples, but the result is the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions