Code/Example Adding auto camera panning of tables.

Coding and examples for future Pinball and BAM

HZR

Pinball Hall of Famer
Site Supporters
Joined
Aug 17, 2021
Messages
557
Solutions
1
Reaction score
175
Points
56
Favorite Pinball Machine
elm street
Can someone help me add camera Panning to my tables.
Meaning when a table loads the camera will go around the machine and table, I would like to add this for my cabinet. Any help appreciated. I tried adding this script but it didnt work. Figured I may ask before I spend hours on something that may be simple
example

''''''''''''''''''''''''''''''''''''''''''Camera Settings'''''''''''''''''''''''''''''''''''''''''''''''''

If xBAM.Camera.Mode = xBAM_Camera_Desktop then DesktopMode = True
If xBAM.Camera.Mode = xBAM_Camera_Cabinet Then DesktopMode = False


'Desktop Camera sequence for Panning
xBAM.Camera.DesktopSequenceBegin 10
xBAM.Camera.DesktopSequenceAddEntry -725, 1869, 928.6, 690.1, -22.6, 110.6, 50, 7000
xBAM.Camera.DesktopSequenceAddEntry 1275, 1869, 916.7, 220.3, -114.6, 0, 50, 7000
xBAM.Camera.DesktopSequenceAddEntry 344.8, 1869, 1068.6, 297.9, -371.1, 0, 50, 7000
xBAM.Camera.DesktopSequenceAddEntry 372.8, 1800.8, 948.8, 352.8, -102.1, 0, 50, 7000
xBAM.Camera.DesktopSequenceAddEntry 199.4, 1116.7, 434.8, 192.6, 558.3, 0, 50, 8000
xBAM.Camera.DesktopSequenceAddEntry 199.4, 1116.7, 434.8, 183.7, 617.2, 449.6, 50, 10000
xBAM.Camera.DesktopSequenceAddEntry 199.4, 1116.7, 434.8, 183.7, 617.2, 449.6, 50, 3000
xBAM.Camera.DesktopSequenceAddEntry 275, 1421.5, 450, 275, 434, 0, 50, 3000
xBAM.Camera.DesktopSequenceEnd

'Cabinet Camera sequence for Panning
xBAM.Camera.CabinetSequenceBegin 11
xBAM.Camera.CabinetSequenceAddEntry 0, 0, 0, 1, 1, 1, 0, 0, 0, 5000
xBAM.Camera.CabinetSequenceAddEntry 0, 1200, -500, 2, 2, 1.1, 20, -0, 0, 10000
xBAM.Camera.CabinetSequenceAddEntry -1700, 800, -600, 2, 2, 1.1, 20, 0, -70, 10000
xBAM.Camera.CabinetSequenceAddEntry 1700, 800, -600, 2, 2, 1.1, 20, -0, 70, 10000
xBAM.Camera.CabinetSequenceEnd


Sub CheckCamera()
If xBAM.Camera.Mode = xBAM_Camera_Desktop and RoomCamera = 1 Then
DesktopMode = True
If xBAM.Camera.ScriptControl = FALSE Then
xBAM.Camera.RequestForControl
End if
End If
If xBAM.Camera.Mode = xBAM_Camera_Desktop and RoomCamera = 2 Then
DesktopMode = True
If xBAM.Camera.ScriptControl = FALSE Then
xBAM.Camera.RequestForControl
End if
End If
If xBAM.Camera.Mode = xBAM_Camera_Desktop and RoomCamera = 3 Then
DesktopMode = True
If xBAM.Camera.ScriptControl = FALSE Then
xBAM.Camera.RequestForControl
End if
End If

If xBAM.Camera.Mode = xBAM_Camera_Desktop then
DesktopMode = True

If RoomCamera = 0 then nvR2 = 0:xBAM.Camera.DesktopRelease
If RoomCamera = 1 then nvR2 = 1:xBAM.Camera.DesktopSequencePlay 10
If RoomCamera = 2 then nvR2 = 2:xBAM.Camera.DesktopSequencePlay 10
If RoomCamera = 3 then nvR2 = 3:xBAM.Camera.DesktopRelease
End if

If xBAM.Camera.Mode = xBAM_Camera_Cabinet and RoomCamera = 1 Then
DesktopMode = False
If xBAM.Camera.ScriptControl = FALSE Then
xBAM.Camera.RequestForControl
End if
End If
If xBAM.Camera.Mode = xBAM_Camera_Cabinet and RoomCamera = 2 Then
DesktopMode = False
If xBAM.Camera.ScriptControl = FALSE Then
xBAM.Camera.RequestForControl
End if
End If

If xBAM.Camera.Mode = xBAM_Camera_Cabinet then
DesktopMode = False
If RoomCamera = 0 then nvR2 = 0:xBAM.Camera.CabinetRelease
If RoomCamera = 1 then nvR2 = 1:xBAM.Camera.CabinetSequencePlay 11
End if
End Sub

''''''''''''''''''''''''''''''''''''''''''''''End if Camera Settings''''''''''''''''''''''''''''''''''
 
Just to make sure it is clear:


You won't be asked to DENY/ALLOW the camera control if you use:
You wont be asked to DENY/ALLOW if you delete the 3 lines of code.
(I edited my post)

you are correct also...
delete the 3 lines of code and add

xBAM.Camera.RequestForControl True
 
Last edited:
General chit-chat
Help Users
You can interact with the ChatGPT Bot in any Chat Room and there is a dedicated room. The command is /ai followed by a space and then your ? or inquiry.
ie: /ai What is a EM Pinball Machine?
  • No one is chatting at the moment.
  • Chat Bot Mibs Chat Bot Mibs:
    knaxit has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    dw1 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    allamain has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    johnny4545 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    mranderson has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    PinballFan1984 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Darkchylde has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Jeff X has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    SireB has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    francisghost has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    grumpycat has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    KingKongs has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Marthani has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    sandrosws has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    GUNSMOKE has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    lshjs has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Printz has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    id11179 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Thalamus has left the room.
  • AI Bot @ AI Bot:
    @, To remove or disable Two-Factor Authentication (2FA) from an account, you'll typically need to go through the platform where you've enabled 2FA. Here's a general guide:

    ### Steps to Remove Two-Factor Authentication (2FA):

    1. **Log in to your account** on the service (e.g., Google, Facebook, Apple, etc.).
    2. **Go to the Security or Account Settings** section.
    3. Find the **Two-Factor Authentication (2FA)** or **Two-Step Verification** option.
    4. Select **Disable**, **Turn Off**, or remove the 2FA method(s).
    5. You may be required to **enter a verification code** or **confirm your password**.

    ---

    ### If You Don't Have Access to Your 2FA Method:
    If you lost access to your 2FA device (like a phone or authenticator app):

    - Look for an option like **"Can't access your 2FA?”**, **“Need help?”**, or **"Account recovery"** on the login screen.
    - Contact the platform’s **customer support** for help.
    - You may need to verify your identity by answering security questions or providing ID.

    ---

    If you tell me which service or platform you want to remove 2FA from (e.g., Google, Facebook, Instagram, etc.), I can give you more specific instructions.
    Quote
  • Chat Bot Mibs Chat Bot Mibs:
    Guest pinball nirvana has joined the room.
  • P (Guest) pinball nirvana:
    how can I remove my 2factor
    Quote
  • P (Guest) pinball nirvana:
    remove my 2FA
    Quote
  • P (Guest) pinball nirvana:
    hi
    Quote
  • P (Guest) pinball nirvana:
    how to remove my 2factor from pinball nirvana
    Quote
      P (Guest) pinball nirvana: how to remove my 2factor from pinball nirvana
      Back
      Top