Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

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

how to query typed text in node's name filed in outliner

4 REPLIES 4
Reply
Message 1 of 5
batarg
298 Views, 4 Replies

how to query typed text in node's name filed in outliner

how to query typed text for node's name in outliner?

or maybe better solution is to find the callback that sends name after enter is pressed to `rename` command?

 

main goal is to make custom renaming in outliner

4 REPLIES 4
Message 2 of 5
Kahylan
in reply to: batarg

The renaming itself is done using the rename command:

 

https://help.autodesk.com/cloudhelp/2022/ENU/Maya-Tech-Docs/Commands/rename.html

 

Searching for the name to rename is normally done using the ls command, it depends on what criteria you need for renaming.

 

https://help.autodesk.com/cloudhelp/2022/ENU/Maya-Tech-Docs/Commands/ls.html

 

I hope this helps!

Message 3 of 5
batarg
in reply to: batarg

@Kahylan thank you for your time, but not exactly what im asked for.

the rename (mel) command is executed afterwards, i need to hook that process entirely before rename is executed.

the outlinerEditor function has no flag for enterCommandScript like other ui elements does (eg. textField, button, etc)

Message 4 of 5
Kahylan
in reply to: batarg

Yes, thats because the Outliner is a display Editor, like the node editor or the Hypershade, meant to give you an overlook over all the nodes in the scene. Thats why I told you about the ls command, since everything you see in the Outliner are nodes that can be listed with it.

If you tell me what exactly you need to do I might be able to help you further.

Message 5 of 5
batarg
in reply to: Kahylan

i have a script that helps me rename objects with number or char incrementing, eg:

```

upperArm_L_##_jnt

>>

upperArm_L_03_jnt

or

feather@@_01_jnt

>>

featherAA..featherZZ_01_jnt

```

but i want to do it more naturally using the existing ecosystem(outliner)

 

im vey glad that devs gived us customizeble DASH commands, that helps to do complex things with simple moves, so i want to extend that language to renaming process

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

Post to forums  

Autodesk Design & Make Report