Short of writing a custom widget, or reworking the channel box code, I don't
think it's possible. We ran into something similar, so we looked at how
factory constraints are handled, because they are doing essentially the same
thing: when you animate a weight on a constraint, that weight is a child
attribute of a multi/compound, yet does appear  in the channel box. What is
actually happening is a new top level [interface] attribute is added to the
constraint node and it drives the actual attribute used in the constraint
node's compute. This newly added attribut is the one you see in the channel
box. If you look carefully in the hypergraph you can see the node's
connection to itself at the top of the node icon. Not a pretty solution, but
I'm not sure there's a better one.

-Judah

On Saturday, August 27, 2011, Sebastian Schoellhammer <
[email protected]> wrote:
> Hallo!
>
> is it possible to display a compound child attribute  in the channelBox?
>
> I made it keyable, I made the compound keyable and set them all
.setChannelBox(true); but still it won't show up.
>
> This is for a weight value for my blendShape deformer.
> All the data is grouped below a "target" compound but I would like the
user to be able to access the weight attribute while working.
>
> In the end I made the weights a separate array attribute next to the
target compound one which works but is not as neat I thought..
>
> Thanks for any hints!
>
> seb
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to