Property Panel Attributes

View attribute for the Property Panel. Using this from scripting is similar to the InspectObj command, although InspectObj is more flexible and powerful. Not all attributes support both setting and getting. Check the third column in the table.

Attribute Name | Description | Supports
targetcontent | The name of a property set to view, such as "preferences.modeling". When the property that the panel references is deleted, the panel contents are removed. When a new scene is created or loaded, the property panel tries to resolve the targetcontent path and display it again. This is useful for displaying information about elements that are always present in a scene but may be destroyed and recreated when you switch scenes. If the view is driven by a relationship, this content can be replaced dynamically. You can also control this attribute programmatically even if the view is not driven. See the View object for an example using this attribute. Possible Values: • <fullname of any property> The FullName of the property to display. | • Get • Set
keywords | Specifies which property set(s) appears for the specified object (eg., all, general, modeling, kinematics, animation, custom, rendering, simulation, viewing, etc.). Possible values are dictated by the kind of property set displayed (see the targetcontent attribute). For example, if you set targetcontent to "preferences.modeling", the keywords value will be ignored; however, if you set targetcontent to "sphere", you can limit the properties on the panel to the kinematics, viewing, etc. | • Set

| See View Attributes for a complete list of types of attributes that you can use when customizing your Relational Views.

Python Example

    app = Application
    app.NewScene("", 0)
    app.CreatePrim("Sphere", "MeshSurface")
    currlayout = app.Desktop.ActiveLayout

    # Set up a property panel displaying modeling preferences
    newview = currlayout.CreateView("Property Panel", "ModelPrefsPanel")
    newview.SetAttributeValue("targetcontent", "preferences.modeling")

    # Set up a property panel displaying a sphere's kinematics
    popup = currlayout.CreateView("Property Panel", "SpherePanel")
    popup.SetAttributeValue("targetcontent", "sphere")
    popup.SetAttributeValue("keywords", "kinematics")

Autodesk Softimage v7.5