local and global variable... a local variable inside the scope of the ( ) they're in while global variable can be accessed anytime. I suggest to stick with local as much as you can. ie:(local test)print test this will give an undefined error as the variable test is not defined outside the ()(local testprint test) works…
for o in #($spine1,$spine2,$spine3) do ( local ctrl = Circle radius:20 isSelected:off name:("ctrl"+o.name) ctrl.pivot = [0,0,-5] ctrl.pos = o.transform.pos o.rotation.controller = orientation_constraint() o.rotation.controller.appendTarget ctrl 50 o.rotation.controller.relative = true ) you do not need to use ' ' after $…
Hi Mrfred, thanks for your help This "("ctrl"+o.name)" is actually the part i couldn't guess. As for the ', i use them just to be sure there is no error since some of the name i use have space. I have a couple follow up question, why is there a "local" before circle? and does the letter i use as index matter? you use "o"…