3/21/2021 0 Comments Maxscript Reference
This is not an official translation and may contain errors and inaccurate translations.Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.My problem is this: I simply want to mix a string and an integer and somehow turn them both into a string, so I can use that output string as an objects name.Which is also broken as well.) Heres the code: try (closeRolloutFloater RolloutFloaterTemplate) catch().
Third, the line basename i as string name is your biggest problem (and nope, C doesnt work that way either), just as most C-like languages, variable assignment takes the form variable value, not vice versa. In your case, that would be obj.name baseName.text i as string (provided that you previously saved the created object in the obj variable). Maxscript Reference Plus While YouAnd by that I mean the whole on button1 pressed indentation (plus while you can omit brackets like this, given that you are beginner, I wouldnt do that). Also, stick to one naming convention, doesnt matter if you choose to use underscores or camelCase, just pick one and get in the habit of naming stuff as you write code - so no more button1s. Oh, and even though it doesnt really make a difference performance-wise here, Ive hoisted the if-test outside the for-loop - once again a good habit, when the condition youre checking for doesnt change. Can you direct me to a page of all the syntaxes and how they work I tried the help documentation but that doesnt help me at all, and heres why: I followed an example to see how itd work out, and it doesnt work at all, heres the code: macroScript RenameThem category: HowTo. Im currently trying to create an object outside of the loop, a basic rectangle (I do not need 10 rectangles), but regardless of where I place its creation code, it refuses to work as a whole and throws me an error, heres the code for that: try (closeRolloutFloater rolloutFloaterTemplate) catch(). Maybe I pressed a keystroke or I corrupted a system file for 3ds Max by doing something. Then you will know what the macroScripts are used for (hint: its about making stuff accessible from the main UI without running scripts every time). Take your time to work through it systematically - and I mean it, take a week to do that starting at the very start and not in some random places. Maxscript Reference Series From TheTheres also a MAXScript 101 series from the MAXScript creator John Wainwright himself, very much recommended. I could imagine youd expect this to work, but C Parentheses are used for a reason and Ive told you before that being a beginner, you should use them even for a one-line codeblocks - and multi-line codeblocks simply wont work as you expect when you omit them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |