Script Help - how to run script on group
I am not a programmer nor am i anywhere near that level. However i have been playing around with the most basic functions of listener and the scripts and i want to be able to create simple scripts for my every day use.
For instance, i created the below script which placed a UVW map of 2000mm to the selected object.
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].maptype = 4
$.modifiers[#UVW_Map].length = 2000
$.modifiers[#UVW_Map].width = 2000
$.modifiers[#UVW_Map].height = 2000
However, when i try and run the script on a group, it doesnt work and it comes up with the error "unknown propery:"modifiers" in $selection.
How can run this script on any thing that is selected, be that it is a group or not?
Thanks in advance guys