- Joined
- May 3, 2016
- Messages
- 3,025
- Solutions
- 7
- Reaction score
- 2,418
- Points
- 145
- Favorite Pinball Machine
- Attack From Mars
The purpose of this tutorial is to capture comments about 2 ways of swapping texture on table objects so it is not lost.
1) The method at the following link works well but requires that table objects have a name that can be used in the script. It can't be used on ramps or other unnamed objects.
2) This method can be used on objects that don't have a name. It does exhibit some odd behavior on FP models that use an invisible texture.
This method replaces all textures used on the table that have the same texture name as the code in the red text below. The texture is replaced with the name of the texture in blue below. It requires adding the code in green. If you don't want to have all the objects on the table use the texture with the name in red below, you can make another copy of the texture with a different name and upload to the table and use it on the objects you want to change.
It works perfectly except when attempting to replace a texture on a model with a FPM file extension and use an invisible texture. For some reason, you must have the "Reflects off playfield" option checked for it to work. Oddly, the "Reflects off playfield" option does not need to be checked on other table objects except FP models. If you can't live with the "Reflects off playfield" option checked, then you can change the FP model unnamed model to a named object like a toy and use the code from the first option above.
===========================================
Dim PuP_Plug_Tex
Set PuP_Plug_Tex = xBAM.Get("PuPPlugin")
If PuP_Plug_Tex Is Nothing Then AddDebugText "PuP Plugin is missing"
' swap ramp texture with new texture
PuP_Plug_Tex.ReplaceTexture PuP_Plug_Tex.GetTextureId("ramp_texture"), PuP_Plug_Tex.GetTextureId("ramp_texture_2")
' swap ramp texture back to original texture
PuP_Plug_Tex.ReplaceTexture PuP_Plug_Tex.GetTextureId("ramp_texture"), PuP_Plug_Tex.GetTextureId("ramp_texture")
===========================================
This method is described in depth on this link:
1) The method at the following link works well but requires that table objects have a name that can be used in the script. It can't be used on ramps or other unnamed objects.
Tutorial - BAM - BAM Feature How-To Guides
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' TABLE OF CONTENTS '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' The following are now part of this thread: 1.Intro and Preamble 2.xBAM texture swapping for texture swapping of table and room...
pinballnirvana.com
2) This method can be used on objects that don't have a name. It does exhibit some odd behavior on FP models that use an invisible texture.
This method replaces all textures used on the table that have the same texture name as the code in the red text below. The texture is replaced with the name of the texture in blue below. It requires adding the code in green. If you don't want to have all the objects on the table use the texture with the name in red below, you can make another copy of the texture with a different name and upload to the table and use it on the objects you want to change.
It works perfectly except when attempting to replace a texture on a model with a FPM file extension and use an invisible texture. For some reason, you must have the "Reflects off playfield" option checked for it to work. Oddly, the "Reflects off playfield" option does not need to be checked on other table objects except FP models. If you can't live with the "Reflects off playfield" option checked, then you can change the FP model unnamed model to a named object like a toy and use the code from the first option above.
===========================================
Dim PuP_Plug_Tex
Set PuP_Plug_Tex = xBAM.Get("PuPPlugin")
If PuP_Plug_Tex Is Nothing Then AddDebugText "PuP Plugin is missing"
' swap ramp texture with new texture
PuP_Plug_Tex.ReplaceTexture PuP_Plug_Tex.GetTextureId("ramp_texture"), PuP_Plug_Tex.GetTextureId("ramp_texture_2")
' swap ramp texture back to original texture
PuP_Plug_Tex.ReplaceTexture PuP_Plug_Tex.GetTextureId("ramp_texture"), PuP_Plug_Tex.GetTextureId("ramp_texture")
===========================================
This method is described in depth on this link:
Ramp and mini playfield
Can I use a ramp on (with) a mini playfield. I try but it's don't work, but maybe I've made a fault (but I know some items don't work with mini playfield). Thank in advance for tour respons.
pinballnirvana.com