adding loop into parameters setting
I have a very simply script to adding point3 controller to attribute holder modifier. My task is that I need X number of zk´s and this X is selection.count number. But in parameters dont work any loop. So is there any possibility to adding new controler to def attributes in another solution?
I know that I need define somehow array zk´s of type point3 .. but I dont know exactly how. Or maybe my whole logic about this proble is wrong.
def=attributes MonkFace ( parameters param ( for i=1 to 3 do ( zk[i] type:#point3 ) ) ) custAttributes.add $.modifiers[1] def
Comments
Swordslayer (díky moc) thank
Swordslayer (díky moc) thank you very much. Is there your own forum ? :) because I think that from whole planet only you answered me on my "stupid" questions about maxscript:)
Ok i searched somethink about point3Tab in maxscript help but i dont fully understand how can I add controllers. And The next issue is, if I write my problem understandable. Because I saw somethink about UI´s on point3Tab .. and i dont mean controllers like spinner slider checkbutton etc. I mean, from my example, 3 separated point3 controllers in MonkFace group of parameters.
Finaly i need X these separated controllers. (attachment)
No forum, sorry about that :)
No forum, sorry about that :) Just blog, email, and possibly skype (see PM). As for the issue, if you need to store/link controllers, maybe more appropriate would be to store them as maxObjects, so maxObjectTab. For example with controllers that have subcontrollers for each point3 token, such as Position/Euler/Scale XYZ, something like this could be a way:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
I send you PM on maxarea
I send you PM on maxarea because i cant find pm here. Okay if I fully understand you script ... it store items in controls rollout is that right ? But I dond understand if I can store items via script or I need add them with (add/edit parameters window)
ok another way .. what I need exactly now is. If i select 5 object. And I write some script (I know that is bad). Result must be what i send in attachment in previous comment. Is that understadable ? Because I would like tu understand fundamentals why it work and why not. with your perfect proffesional script my mind is blowing and I cant catch the line:)
Probably still contains a few
Probably still contains a few bugs and unfinished parts:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
Is there anything that would
Is there anything that would prevent you from using for example
parameters param (points type:#point3Tab)
?Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters