Hi everyone!
I started to play around with MaxScript, because I want to do a timesaver for further projects. The endresult should be something like a Toolset for me and my working mates. So we can yous it to export and do some technical stuff which needs to be done correctly, nameconventions and stuff, with some simple MacroScripts.
so I started with a pretty simple thing:
I want to generate a group with a specific name when the function is called.
my problem is, that I always get a dialog to enter the name but I dont want this dialog but rename it with a given name.
this is my first attempt where the dialog pops up:
-- Group selected and Rename it
fn GROUP_NAME
(
actionMan.executeAction 0 "40140" -- group selected
clearSelection
select $Group01
$.name ="thename" -- "thename" is the name var
)
is that the correct attempt to this or is there an easier or more beautiful way to get this? e.g. a command with which you can group a selection and give it a name at once...
thx in advance, so long,
zumpi
Anubis · 2009-03-29
real08121985 · 2009-03-18