Script Help - how to run script on group
Hi guys
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
Comments
aa= Uvwmap()aa.maptype =
or
modPanel.addModToSelection is mapped function.
note: it will be instance modifier
Thanks so much
Hey there
Thanks so much - so i figured that aa represents 1 modifier. SO if you want to add more the next would be bb and then cc and so forth. Worked a treat - THANKS SO MUCH
PS - where can i get more info on scripts and how to make them? I think its awesome.
ALso any ideas on where to create the interface for it? ie create an interface for the script itself
1.everything start from you
1.everything start from you want to learn ...
2.download all (not all) free open script here first...
3.copy and paste thing that you want to learn from downloaded script (like how to make UI, many sample here) ...
4.do some experiment (try and error thing)....
5.then read the maxscript help (I recommend you to download the maxscript in chm file first...)...
6.and if you bump to something like this case then dont be shy to ask another people on forum like this or on cgtalk(there you'll meet many expert that ready to help you like here too).
here is the cgtalk address for maxscripter
and here is the code sample how to make UI from maxscript
copy and paste those code in maxscript editor and execute it (ctrl+e).