Community
Maya Animation and Rigging
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya animation topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change attribute order in Channel Box?

16 REPLIES 16
SOLVED
Reply
Message 1 of 17
litote
16942 Views, 16 Replies

How to change attribute order in Channel Box?

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

16 REPLIES 16
Message 2 of 17
Anonymous
in reply to: litote

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
in reply to: Anonymous

Thanks, it is a solution.
Message 4 of 17
Anonymous
in reply to: litote

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.

Message 5 of 17
JuanBernardo29
in reply to: litote

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
in reply to: litote

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...? 

Message 7 of 17
JuanBernardo29
in reply to: Anonymous

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

Message 8 of 17
stephenkmann
in reply to: litote

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

 

adding this soon to GumRoad. sm_channel_tools for locking/hiding/showing/moving/connecting channels The biggest addition being the ability to quickly move channels up and down in the channelbox. without losing connections. available now on GumRoad https://gumroad.com/l/tuTQp (more to come..) -=s ...
Message 9 of 17
Anonymous
in reply to: JuanBernardo29

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...

Message 10 of 17
derek_k_annan
in reply to: Anonymous

Thanks for this. its works perfectly

Message 11 of 17
stephenkmann
in reply to: litote

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

adding this soon to GumRoad. sm_channel_tools for locking/hiding/showing/moving/connecting channels The biggest addition being the ability to quickly move channels up and down in the channelbox. without losing connections. available now on GumRoad https://gumroad.com/l/tuTQp (more to come..) -=s ...
Message 12 of 17
luisandro.garza
in reply to: Anonymous

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

Message 13 of 17
stephenkmann
in reply to: litote

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()

Message 14 of 17

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

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 

 

Message 16 of 17

[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]
Message 17 of 17
stephenkmann
in reply to: litote

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.

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report