Пример #1
0
def DisplayCameraViewOptions(pCamera):
    DisplayString("    Camera View Options")

    DisplayBool("        View Camera Interest: ",
                pCamera.ViewCameraToLookAt.Get())
    DisplayBool("        View Near Far Planes: ",
                pCamera.ViewFrustumNearFarPlane.Get())
    DisplayBool("        Show Grid: ", pCamera.ShowGrid.Get())
    DisplayBool("        Show Axis: ", pCamera.ShowAzimut.Get())
    DisplayBool("        Show Name: ", pCamera.ShowName.Get())
    DisplayBool("        Show Info on Moving: ",
                pCamera.ShowInfoOnMoving.Get())
    DisplayBool("        Show Time Code: ", pCamera.ShowTimeCode.Get())
    DisplayBool("        Display Safe Area: ", pCamera.DisplaySafeArea.Get())

    lSafeAreaStyles = ["Round", "Square"]

    DisplayString("        Safe Area Style: ",
                  lSafeAreaStyles[pCamera.SafeAreaDisplayStyle.Get()])
    DisplayBool("        Show Audio: ", pCamera.ShowAudio.Get())

    c = pCamera.BackgroundColor.Get()
    color = FbxColor(c[0], c[1], c[2])
    DisplayColor("        Background Color: ", color)

    c = pCamera.AudioColor.Get()
    color = FbxColor(c[0], c[1], c[2])
    DisplayColor("        Audio Color: ", color)

    DisplayBool("        Use Frame Color: ", pCamera.UseFrameColor.Get())

    c = pCamera.FrameColor.Get()
    color = FbxColor(c[0], c[1], c[2])
    DisplayColor("        Frame Color: ", color)
Пример #2
0
def DisplayDefaultAnimationValues(pLight):
    DisplayString("    Default Animation Values")

    c = pLight.Color.Get()
    lColor = FbxColor(c[0], c[1], c[2])
    DisplayColor("        Default Color: ", lColor)
    DisplayDouble("        Default Intensity: ", pLight.Intensity.Get())
    DisplayDouble("        Default Inner Angle: ", pLight.InnerAngle.Get())
    DisplayDouble("        Default Outer Angle: ", pLight.OuterAngle.Get())
    DisplayDouble("        Default Fog: ", pLight.Fog.Get())
Пример #3
0
def DisplayMarker(pNode):
    lMarker = pNode.GetNodeAttribute()

    DisplayString("Marker Name: ", pNode.GetName())

    # Type
    lString = "    Marker Type: "
    if lMarker.GetType() == FbxMarker.eStandard:
        lString += "Standard"
    elif lMarker.GetType() == FbxMarker.eOptical:
        lString += "Optical"
    elif lMarker.GetType() == FbxMarker.eEffectorIK:
        lString += "IK Effector"
    elif lMarker.GetType() == FbxMarker.eEffectorFK:
        lString += "FK Effector"
    DisplayString(lString)

    # Look
    lString = "    Marker Look: "
    if lMarker.Look.Get() == FbxMarker.eCube:
        lString += "Cube"
    elif lMarker.Look.Get() == FbxMarker.eHardCross:
        lString += "Hard Cross"
    elif lMarker.Look.Get() == FbxMarker.eLightCross:
        lString += "Light Cross"
    elif lMarker.Look.Get() == FbxMarker.eSphere:
        lString += "Sphere"
    DisplayString(lString)

    # Size
    #lString = "    Size: "
    #lString += str(lMarker.Size.Get())
    DisplayDouble("    Size: ", lMarker.Size.Get())

    # Color
    c = lMarker.Color.Get()
    color = FbxColor(c[0], c[1], c[2])
    DisplayColor("    Color: ", color)

    # IKPivot
    Display3DVector("    IKPivot: ", lMarker.IKPivot.Get())