General
Resizing by script
Started by amundsen on .
Sign in or create an account to join the conversation.
Hello,
I have a series of MultiBall I want to resize on their height axis.
I am trying this script :
I have a series of MultiBall I want to resize on their height axis.
I am trying this script :
decl i, current,name;
for (i = 1;i < 27 ;i++) {
name = 'MultiBall'+arraytostring({i});
current = getattribute(name, 'rect');
set(current,128,3);
setattribute(name,'rect',current);
}
However it does not seem to work. What 's wrong ?Unfortunately you cant combine string characters like that......
Your best bet would be to create an expression with all the Multiball object names in it
for example
name= {Multiball, Multiball1, Multiball2........Multiball27};
and then use name inside the i iterations loop.
Your best bet would be to create an expression with all the Multiball object names in it
for example
name= {Multiball, Multiball1, Multiball2........Multiball27};
and then use name inside the i iterations loop.