View Full Version : How to rename the obj faster use script?
perfectboy 08-02-2009, 02:54 PM In my scene,there're three objs, one obj's name is xx_xx_xxxxx_x0, and i need to rename other two: xx_xx_xxxxx_x0_00 and xx_xx_xxxxx_x0_01 .
Everytime i need to rename other two name manual,so i think maybe it have a shortcut to do it. Like this:
When i select one obj, and click "pickname", it will be show in the first line, when i select the second obj, and click "rename" ,its name will be change...so as the third...
http://i3.6.cn/cvbnm/42/c7/85/d1dd96f3df886e40283081a521231b8c.jpg
It have a little difficult for novice, so can you help me?
Thanks!
|
|
denisT
08-02-2009, 05:03 PM
In my scene,there're three objs, one obj's name is xx_xx_xxxxx_x0, and i need to rename other two: xx_xx_xxxxx_x0_00 and xx_xx_xxxxx_x0_01 .
Everytime i need to rename other two name manual,so i think maybe it have a shortcut to do it. Like this:
When i select one obj, and click "pickname", it will be show in the first line, when i select the second obj, and click "rename" ,its name will be change...so as the third...
http://i3.6.cn/cvbnm/42/c7/85/d1dd96f3df886e40283081a521231b8c.jpg
It have a little difficult for novice, so can you help me?
Thanks!
check uniqueName in MAXScript Help...
Myanko
08-02-2009, 11:10 PM
With a non maxscript solution, you can go to the menu "Tools" and select "Rename Objects..."
A window named "Rename Objects" will open.
Now, to do what you want, you need to:
Check the option "Base Name" and write the name you want like "xx_xx_xxxxx_x0_".
Check the option "Numbered" Keep basic settings
Hit Rename and you are done.
Won't be that hard to script it, and the maxscript help documentation about the unique name is a good start, to know how to rename objects. You will need to add your selected objects in an array and pass each of them, one by one in a loop to give the name you want plus a numerical value as suffix.
Wich it can help.
perfectboy
08-03-2009, 01:58 AM
Wich it can help.....
Thanks for your replay...Myanko.
But i couldn't just to use it,i want to learn it , so if it have script?
Polimeno
08-03-2009, 04:12 AM
i personally like to use wahooney´s script (http://www.wahooney.net/download.php?view.10) (or here (http://www.wahooney.net/download.php?view.18))
you can rename lots of objects quickly and easy.
hope it helps
perfectboy
08-03-2009, 04:28 AM
i personally like to use wahooney´s script (http://www.wahooney.net/download.php?view.10) (or here (http://www.wahooney.net/download.php?view.18))
you can rename lots of objects quickly and easy.
hope it helps
Hi Polimeno...Thanks for you replay.
I have downloaded...it's a .exe file, and does it have script code when instilled it?
I instilled it on max2009,but it not wok....
perfectboy
08-03-2009, 09:05 AM
GOD...Maybe i was in trouble....
Everyone who can help me ! :curious:
Polimeno
08-03-2009, 03:07 PM
I have downloaded...it's a .exe file, and does it have script code when instilled it?
I instilled it on max2009,but it not wok....
yes, you can see all the functions after install, e.g:
C:\thePath\Autodesk\3ds Max 2009\Scripts\wahooney\RNAK\RNAK_Rename_Functions.ms
C:\thePath\Autodesk\3ds Max 2009\ui\macroscripts\Wahooney Tools - RenamingAK.mcr
it´s working good for me (Max 2009 32bits)...click here (http://img.photobucket.com/albums/v205/RNThead_3D/pics/polimeno_screen_.jpg) to see my screen shot.
wtv, I have attached a zip file below with installer, .mcr, .ms.....let me know what´s happenig.
seeya
perfectboy
08-03-2009, 04:47 PM
....
Hi,Paulo...
Thanks for your circumspective reply...
I have already instill it , but where i find it in max2009? Or how to show its panel?
When i start the max2009, it's nothing...
perfectboy
08-03-2009, 04:57 PM
I have no ask much more desire, just to slove my problem like my panel , it's all...
And now i have a little dizzy...
The maxscritp...not simple!!
Polimeno
08-03-2009, 05:05 PM
I have already instill it , but where i find it in max2009? Or how to show its panel?
When i start the max2009, it's nothing...
menu Customize > Customize User Interface... > Category:Wahooney Tools
then you can assign a hotkey (Keyboard tab) or add to UI (Toolbars, Menus, Quads tab), as you prefer.
perfectboy
08-03-2009, 05:33 PM
menu Customize > Customize User Interface... > Category:Wahooney Tools
then you can assign a hotkey (Keyboard tab) or add to UI (Toolbars, Menus, Quads tab), as you prefer.
Thank you again...and i'm sorry that i'm not see your pic carefully...
perfectboy
08-04-2009, 01:48 PM
...
Hi Polimeno
I instilled it and add to UI, when i run it, the error:
http://p13.freep.cn/p.aspx?u=v20_p13_p_0908042146535116_0.jpg
-- Error occurred in anonymous codeblock; filename: C:\Program Files\Autodesk\3ds Max 2009\UI\MacroScripts\Wahooney Tools - RenamingAK.mcr; position: 2510
>> MAXScript MacroScript Compile - C:\Program Files\Autodesk\3ds Max 2009\UI\MacroScripts\Wahooney Tools - RenamingAK.mcr, offset 2510; Exception: -- Syntax
error: at string, expected "animate", "undo", "redraw", "pivot", "printAllElements", "quiet" or "defaultAction"
-- In line: GroupBox grpRem "R <<
CGTalk Moderation
08-04-2009, 01:48 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.