PDA

View Full Version : How to get Master python script to stay within file



ernpchan
04-25-2014, 06:14 PM
I'm in the process of translating one of my ls Master scripts to python. My python version doesn't look to be staying with my file upon close. When I load my scene I get the prompt that it can't find the MasterHandler in question.

I have the below in my flags function:

def flags(self):
return lwsdk.LWMAST_SCENE | lwsdk.LWMASTF_RECEIVE_NOTIFICATIONS

Is this correct?

clintonman
04-25-2014, 08:00 PM
I think that's correct. I had the opposite problem with a plugin that I didn't want to load with the scene and my old code looks like that. Is your plugin in the support\plugins\scripts\Python folder? I think it has to be somewhere in there to be found automatically.

ernpchan
04-25-2014, 08:16 PM
No, I store my proprietary scripts in a different location. Is that the issue?

ernpchan
04-28-2014, 05:30 PM
Making the name of my file match what's in the ServerTag block seems to have fixed things.