Hi I would like to have two cameras for a split screen left and right. I have been looking around does anyone know a good script I could just copy and paste to my file? Thanks I know nothing about Python and am using blender 2.6 if that matters. Thanks again.
Cool, I didn’t quite understand much of that page you linked me to, but I have been searching for viewports now and this is a script I have found. Could you tell me what is wrong with it? I am not sure how to activate this stuff. Thanks for replying! http://www.blendermaster.newspawn.org/blends/Viewports/Scripts/Viewports.py
It does not look wrong
there are some things that could be improved
- it contains too much comments
- it looks like a module but is a script
- function names do not tell what the function is supposed to do
- missing instructions
but this has no influence on if it works or not.
I suggest you
*copy it into the text editor,
*give it a name,
- add an empty
** add an Always sensor
** connect it to a Python controller in script mode setting your textblock.
** optional: add a property called “Vertical” - add a camera called “Viewport_1”,
- add another camera “Viewport_2”
Okay, I don’t mean to be a bother, but I am a complete noob to python. I just studied a bit so now I understand # and " and a few things. Um, but it still doesn’t seem to want to work. I’ve tried the empty with the python controller connected to an always sensor. I gave the cameras the names as mentioned in the script. I tried moving the python controller to the cameras, that didn’t do anything. Anyway, I just want to know if I am missing something. Do I have to hit a switch in settings or something to activate using python or anything. Thanks Monster you have helped me with like most of my threads.
splitscreen test.blend (218 KB)
Okay, I tried to pull that in, but no luck. I made a new file and tried to recreate your file that works youle. But, I don’t know what I am doing wrong. If you could take a look at this blend and tell em what I did wrong that would be super nice.
I think there is something wrong in my settings disabling python or something, but I can’t find anything about it. It seems so simple but I can’t get this to work. Thanks for the tutorial I just tried it but can’t get it to work for me.
In the blend file you posted there is a typo, the second game property of the Empty object is named “Ciewport_2” instead of “Viewport_2”. Fixing that also makes the game engine run. I don’t know if it also does what it is supposed to do (my guess is yes).
Thanks you thank you thank you. You are all very nice people. It works, thanks.