def main():
    global osType
    global unix_path
    global win_path
    global save_selection

    lx.trace(False)

    osType = platform.system()
    lx.out("TYPE OS: " + osType)

    unix_path = "/Volumes/ProjectsRaid/WorkingProjects"
    win_path = "Z:\AzureSync\CloudComputing\WorkingProjects"

    save_selection = lx.evalN("query sceneservice selection ? all")

    renderoutputs = bd_utils.get_ids("renderOutput")

    if renderoutputs:
        for x in renderoutputs:
            update_render_output(x)

        bd_utils.restoreSelection(save_selection)
    else:
        bd_utils.restoreSelection(save_selection)
	# Generate list of all locator items in scene
	def locatorList(self):
		lList = []
		for i in range(lx.eval('query sceneservice item.N ?')):
		    type = lx.eval('query sceneservice item.type ? %s' % i)
		    if (type == "locator"):
		    	lList.append(lx.eval('query sceneservice item.id ? %s' % i))
		return lList

# ============================================================
# main

lx.out( "Python Version: " ,sys.version)
lx.out( "Python path: " ,sys.path)

lx.trace(False)

# add uservalue
if not lx.eval("query scriptsysservice userValue.isdefined ? BVHLoader.scaleFactor"):
	lx.eval( "user.defNew BVHLoader.scaleFactor percent" )
	
if not lx.eval("query scriptsysservice userValue.isdefined ? BVHLoader.readJointOnly"):
	lx.eval("user.defNew BVHLoader.readJointOnly integer" )
	lx.eval("user.def BVHLoader.readJointOnly list on;off")

if not lx.eval("query scriptsysservice userValue.isdefined ? BVHLoader.rotOrder"):
	lx.eval("user.defNew BVHLoader.rotOrder integer" )
	lx.eval("user.def BVHLoader.rotOrder list BVH;flipBVH;XYZ;XZY;YXZ;YZX;ZXY;ZYX" )
	
# if not lx.eval("query scriptsysservice userValue.isdefined ? BVHLoader.adaptFPS"):
# 	lx.eval("user.defNew BVHLoader.adaptFPS integer" )
    """
    try:
        for x in listItem:
            lx.eval("shader.setVisible %s %s" % (x, visibilty))

    except:
        #exc_log()
        lx.out("ERROR VISIBILITY")
        return None


# END FUNTION -----------------------------------------------

# MAIN PROGRAMME --------------------------------------------

tracing = lx.trace(True)
args = lx.args()

arg = args[0]
#arg1 = args[1]

#arg = lx.arg()

groupSelected = ""
lx.out("GS", groupSelected)
updateOnly = False
updateExistingOnly = False
osType = platform.system()
lx.out("TYPE OS: " + osType)
RENDERCAMERA = lx.eval('render.camera ?')
if RENDERCAMERA != None:
    try:
         for x in listItem:
            lx.eval( "shader.setVisible %s %s" %(x,visibilty) )
    
    except:
        #exc_log()
        lx.out("ERROR VISIBILITY")
        return None


# END FUNTION -----------------------------------------------


# MAIN PROGRAMME --------------------------------------------

tracing = lx.trace( True )
args = lx.args()

arg = args[0] 
#arg1 = args[1] 

#arg = lx.arg()

groupSelected = ""
lx.out("GS",groupSelected)
updateOnly = False
updateExistingOnly = False
osType =  platform.system()
lx.out ("TYPE OS: "+ osType)
RENDERCAMERA = lx.eval('render.camera ?')
if RENDERCAMERA != None:
 def set_trace(self, state=False):
     lx.trace(state)
    def locatorList(self):
        lList = []
        for i in range(lx.eval('query sceneservice item.N ?')):
            type = lx.eval('query sceneservice item.type ? %s' % i)
            if (type == "locator"):
                lList.append(lx.eval('query sceneservice item.id ? %s' % i))
        return lList


# ============================================================
# main

lx.out("Python Version: ", sys.version)
lx.out("Python path: ", sys.path)

lx.trace(False)

# add uservalue
if not lx.eval(
        "query scriptsysservice userValue.isdefined ? BVHLoader.scaleFactor"):
    lx.eval("user.defNew BVHLoader.scaleFactor percent")

if not lx.eval(
        "query scriptsysservice userValue.isdefined ? BVHLoader.readJointOnly"
):
    lx.eval("user.defNew BVHLoader.readJointOnly integer")
    lx.eval("user.def BVHLoader.readJointOnly list on;off")

if not lx.eval(
        "query scriptsysservice userValue.isdefined ? BVHLoader.rotOrder"):
    lx.eval("user.defNew BVHLoader.rotOrder integer")