Skip to content
Discussion options

You must be logged in to vote

The Outliner color information is stored as customData in the session layer.

over "Capsule1" (
    customData = {
        dictionary Autodesk = {
            double3 "Text Color" = (1, 0, 0)
            bool "Use Text Color" = 1
        }
    }
)

The function _updateTextColorChanged in the file displayCustomControl.py is where you can see the values being set, using Ufe.

To set it yourself you would do something like (this assumes using a later version of Maya that has a Ufe SceneItem which supports group meta data):

import ufe
from maya.internal.ufeSupport import ufeCmdWrapper as ufeCmd

item = ufe.GlobalSelection.get().back()

# Get ufe commands for the two metadata.
cmd1 = item.setGro…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mwalk176
Comment options

You must be logged in to vote
1 reply
@mwalk176
Comment options

Comment options

You must be logged in to vote
1 reply
@mwalk176
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants