Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

How to change attribute order in Channel Box?

How to change attribute order in Channel Box?

litote
Advocate Advocate
20,553 Views
16 Replies
Message 1 of 17

How to change attribute order in Channel Box?

litote
Advocate
Advocate

I have created a few custom attributes (Edit-Add Attribute) in Channel Box. Is there a way to re-order them?

0 Likes
Accepted solutions (1)
20,554 Views
16 Replies
Replies (16)
Message 2 of 17

Anonymous
Not applicable
Accepted solution

Hi,

 

Unfortunately, I don't believe they have implemented a good way to do this. However, you can delete the attribute then use the "Undo" function (Ctrl+z) to bring it back, it will reappear at the bottom of the list. This is an annoying way to do it, but it's the only way I know of.

Message 3 of 17

litote
Advocate
Advocate
Thanks, it is a solution.
0 Likes
Message 4 of 17

Anonymous
Not applicable

You can try it with this tool too: https://github.com/jlararigger/jlr_sort_attributes
You only have to select one or several attributes in the channel box and in the Edit menu of the channel box choose Move Up Attr or Move Down Attr.

0 Likes
Message 5 of 17

JuanBernardo29
Explorer
Explorer

The other way is to save the file as ascii .ma and edit the order of the attributes in any text editor, and sometimes that's the only practical way


@litote wrote:

I have created a few custom attributes (Edit-Add Attribute) in Channel Box. Is there a way to re-order them?


 

Message 6 of 17

Anonymous
Not applicable

Editing the .ma file by hand? deleting and creating the attrs again? what If they are connected to other attrs through expressions or sdk? Is there honestly not a better way to do this in maya...? 

0 Likes
Message 7 of 17

JuanBernardo29
Explorer
Explorer

Well, it's something I never understood why they never implemented, a simple way to manage attributes, but it's quite easy  to do it editing .ma file in text editor, no problem with connections or expressions, you're not changing any relationship, just display order

0 Likes
Message 8 of 17

stephenkmann
Collaborator
Collaborator

I'm working on releasing my channel tools for quickly moving and connecting channels.

sm_channel_toolssm_channel_tools

here is a long boring overview of the tools and how to use them:

https://youtu.be/Qttjt-s6gtY

 

Message 9 of 17

Anonymous
Not applicable

Sure! opening my .ma file on a text editor an manually edit the code of my file is easy enough but cmon....I wonder why houdini is eating away maya users...

0 Likes
Message 10 of 17

derek_k_annan
Contributor
Contributor

Thanks for this. its works perfectly

0 Likes
Message 11 of 17

stephenkmann
Collaborator
Collaborator

if you are interested. i made a tool to help move channels around. change their types, etc etc. you can get it here:

https://smannimation.gumroad.com/l/tuTQp

 

here is the first video I made about how to use it. but I try and update it 

 

https://youtu.be/Qttjt-s6gtY

0 Likes
Message 12 of 17

luisandro.garza
Enthusiast
Enthusiast

How does this work? Do I just copy the code to the script editor?

0 Likes
Message 13 of 17

stephenkmann
Collaborator
Collaborator

put the script in your documents/maya/scripts directory 

and then in the script editor ( python tab)

run the following

 

import sm_channel_tools

sm_channel_tools.UI()

0 Likes
Message 14 of 17

luisandro.garza
Enthusiast
Enthusiast
Yeah I tried that. Doesn’t seem to work properly. I’m using maya 2022.
0 Likes
Message 15 of 17

stephenkmann
Collaborator
Collaborator

Are you getting any errors? 

 

Is the window not opening? 

 

Can you give me more info?

 

did you download the latest version from Gumroad?  should be 8.5 

 

0 Likes
Message 16 of 17

luisandro.garza
Enthusiast
Enthusiast
[image: image.png]

This is the best I can do. I'm not too good at python, but I do have
experience running scripts in Maya. I've tried several script folders.

[image: image.png]
[image: image.png]
0 Likes
Message 17 of 17

stephenkmann
Collaborator
Collaborator

looks like your images didn't get posted. 

 

Do you have python scripts in other directories? 

 

You should be able to drop it into your Maya/2020/prefs/scripts/

and that's it.

 

 

0 Likes