本文整理汇总了Python中WorldEditor.farPlane方法的典型用法代码示例。如果您正苦于以下问题:Python WorldEditor.farPlane方法的具体用法?Python WorldEditor.farPlane怎么用?Python WorldEditor.farPlane使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WorldEditor
的用法示例。
在下文中一共展示了WorldEditor.farPlane方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: edtFarPlaneExit
# 需要导入模块: import WorldEditor [as 别名]
# 或者: from WorldEditor import farPlane [as 别名]
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 )
示例2: edtFarPlaneUpdate
# 需要导入模块: import WorldEditor [as 别名]
# 或者: from WorldEditor import farPlane [as 别名]
def edtFarPlaneUpdate():
"""This function returns the farPlane distance in metres."""
return "%.0fm" % (WorldEditor.farPlane(), )
示例3: slrFarPlaneUpdate
# 需要导入模块: import WorldEditor [as 别名]
# 或者: from WorldEditor import farPlane [as 别名]
def slrFarPlaneUpdate():
"""This function returns the farPlane distance."""
return WorldEditor.farPlane()
示例4: slrFarPlaneAdjust
# 需要导入模块: import WorldEditor [as 别名]
# 或者: from WorldEditor import farPlane [as 别名]
def slrFarPlaneAdjust( value, min, max ):
"""This function sets the farPlane distance to the given value parameter."""
WorldEditor.farPlane( value )