Page 1 of 1

FocusPosition in Network Global ?

Posted: Sat Jan 27, 2007 3:37 am
by TheraBylerm
Hi,

I'm using the module "network global"... everything works fine, except one thing (and it's very, very upseting !)

I don't know how to turn off the informations relative to the FocusPosition. In fact, I'm trying to desactivate these informations... but it must keep sending information relative to the layer.

I wrote some more lines, in the existing module that gives nothing... (I'm not good at Python, so sorry...)

I put this line in the "init()"

Code: Select all

elif key.startswith ('ctrl_layerStack_focusPosition') and dictKey['keyFocusPosition'] : return (False)


and this line in the "message event"

Code: Select all

elif msg ==  'FOCUSPOS' : dictKey['keyFocusPosition'] = param['value']


Any idea ? I'm feeling alone with my problem... :oops:

Posted: Mon Jan 29, 2007 4:04 am
by boris
Hum your code is completly wrong... (sorry)...
A simple way is :

change this ( line 30, init script) :

Code: Select all

elif key.startswith ('ctrl_layer') and dictKey['keyLayer'] : return (True)

By :

Code: Select all

elif key.startswith ('ctrl_layer_') and dictKey['keyLayer'] : return (True)

Juste add '_' and the keywords ctrl_layerStack... will be ignored !

I will upload a new network module soon, with new filering key ![/code]

Posted: Mon Jan 29, 2007 9:32 am
by TheraBylerm
:oops: I'm newb... I'm sorry... I will correct it !!

Posted: Mon Jan 29, 2007 12:42 pm
by boris
A new network module (v1.1) is online now !

Posted: Tue Jan 30, 2007 12:24 am
by TheraBylerm
YESSSSS !!!!! It's perfect !!!!

Thanks, Boris... !