Cannot make a connection to a joint's displayStyle attribute

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  06 June 2013
Cannot make a connection to a joint's drawStyle attribute

Yep, that should be "drawStyle"... (not "displayStyle)

I'm trying to make a connection from an attribute on my control handle to a joint's "drawStyle" attribute. But when I try it with mel or python I get the following error...

# RuntimeError: The attribute 'joint1.drawStyle' cannot be connected to 'ctl.jointDisplay'. #

And I can't see the drawStyle attribute in the connection editor.
Does anyone know what makes this attribute not connectable?

(maya 2014)

Last edited by djx : 06 June 2013 at 03:03 PM.
  06 June 2013
Hmm that's weird.. it just doesn't want to be connected to.

drawStyle (ds) enum 0 
This attribute controls how the joint is drawn. The "bone" setting draws the joints as normal bones, as in previous releases. The "Multi-child as Box" draw style indicates that a single box will be drawn to represent the joint and its children, in case the joint has multiple children. The box size is chosen as a bounding box of the children joints. Typically the "bone" draw style is preferable if you are creating a complex skeletal hierarchy such as human ribs, while the "Multi-child as Box" draw style is preferable for representing a large bone with multiple children such as the pelvic bone.

Maybe it's because the children are effected? I dunno but it won't take. You could possibly use an expression to setAttr
blah blah blah
  06 June 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 04:30 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.