I think about the only thing you need to hack (copy/edit) is a dynamic text map, because PyPRP does not support these. Any other imager objects can be made in Blender.
Then you need to create a python file mod which uses the existing global xSimpleImager file. You have to do some post editing here as well because again PyPRP will not allow a python file mod to reference a dynamic text map.
What all those python parameters mean you can see in xSimpleImager.py. Parameters 8 and higher are optional. Obviously you also need the activator region mentioned there.
If I believed you were interested I could show you the Alcscript for a xSimpleImager python file mod in Blender (with a dummy parameter for the dynamic text map to be edited later). But to me it seems you just want to hack the whole thing so I am going to save myself the trouble and wish you good luck with that.
Edit: Oh well, I got curious and looked it up anyway...
- Code: Select all
<imager region>:
logic:
modifiers:
- name: cRgnImager_Enter
flags:
- multitrigger
activators:
- type: objectinvolume
triggers:
- enter
conditions:
- type: volumesensor
satisfied: true
direction: enter
actions:
- type: pythonfile
ref: :cPythImager
- name: cRgnImager_Exit
flags:
- multitrigger
activators:
- type: objectinvolume
triggers:
- exit
conditions:
- type: volumesensor
satisfied: true
direction: exit
actions:
- type: pythonfile
ref: :cPythImager
<imager text plane>:
logic:
actions:
- type: pythonfile
name: cPythImager
pythonfile:
file: xSimpleImager
parameters:
- type: string
value: "My Imager"
- type: string
value: "dummy for dynamic text map"
- type: activatorlist
refs: ['logicmod:cRgnImager_Enter', 'logicmod:cRgnImager_Exit']
- type: int
value: 10
- type: bool
value: false
- type: sceneobject
ref: scnobj:<imager text plane>
- type: int
value: 25
Python params:1 = any name you want to give your imager
2 = should be the dynamic text map reference (post edit)
3 = region which adds / removes the imager in the KI
4 = number of seconds to display an image until refresh
5 = if true then only age owners can add content
6 = the imager plane scene object
7 = max number of images to display before deleting the oldest
Parameter 2 must be replaced with libPlasma into a reference for your dynamic text map:
- Code: Select all
<plPythonParameter ID="2" Type="DynamicText">
<plKey Name="name of dynamic text map" Type="plDynamicTextMap" Location="100;1" LocFlag="0x0000" />
</plPythonParameter>