Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video texture #51

Open
andrey5351 opened this issue Feb 28, 2025 · 0 comments
Open

Video texture #51

andrey5351 opened this issue Feb 28, 2025 · 0 comments

Comments

@andrey5351
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant