Example #1
0
def edtFarPlaneExit(value):
    """This function allows the farPlane distance to be set in centimetres and metres."""
    if value[-2:] == "cm":
        floatValue = float(value[:-2]) / 100.0
    elif value[-1] == "m":
        floatValue = float(value[:-1])
    else:
        floatValue = float(value)

    WorldEditor.farPlane(floatValue)
def edtFarPlaneExit( value ):
	"""This function allows the farPlane distance to be set in centimetres and metres."""
	if value[-2:] == "cm":
		floatValue = float(value[:-2])/100.0
	elif value[-1] == "m":
		floatValue = float(value[:-1])
	else:
		floatValue = float(value)

	WorldEditor.farPlane( floatValue )
def edtFarPlaneUpdate():
	"""This function returns the farPlane distance in metres."""
	return "%.0fm" % (WorldEditor.farPlane(), )
def slrFarPlaneUpdate():
	"""This function returns the farPlane distance."""
	return WorldEditor.farPlane()
def slrFarPlaneAdjust( value, min, max ):
	"""This function sets the farPlane distance to the given value parameter."""
	WorldEditor.farPlane( value )
Example #6
0
def edtFarPlaneUpdate():
    """This function returns the farPlane distance in metres."""
    return "%.0fm" % (WorldEditor.farPlane(), )
Example #7
0
def slrFarPlaneUpdate():
    """This function returns the farPlane distance."""
    return WorldEditor.farPlane()
Example #8
0
def slrFarPlaneAdjust(value, min, max):
    """This function sets the farPlane distance to the given value parameter."""
    WorldEditor.farPlane(value)