
3dwannab
- 43 public contributions
- Member since
- Latest contribution Sep 2021
SME: Get selected nodes (but only materials and that are not applied to scene)
if MatEditor.isOpen() != false AND maxOps.mtlDlgMode == #advanced then ( viewNode = sme.GetView (sme.activeView) view = trackViewNodes[#sme][(viewNode.name)] selNodeInterface = viewNode.getSelectedNodes() --get selected node in SME…
Forum topic
3 commentsRuntime error: array index must be positive number, got: XX
This works viewNode = sme.GetView (sme.activeView) view = trackViewNodes[#sme][(viewNode.name)] if view.numsubs > 0 do ( selNode = selView.getSelectedNodes() --get selected node theMatsNMaps = for n = 1 to view.numsubs collect…
Forum topic
0 commentsZoom in perspective exactly to objects size
I have used this dirty hack (viewport.zoom .75) in code below to approximately get the viewport of the perspective to fill the viewport as best it can and also reset the VP the way I like. viewport.ResetAllViews() --resets to Max Standard…
Forum topic
8 commentsSelect By Material
'SELECT BY MATERIAL' LATEST KEY FEATURES: - Select multiple node/s in SME. - Unhides and hides objects on scripts second run. --============================================================ Script which allows easy selection of materials…
Script
8 commentsGet external maxfiles fileproperties (Version No.)
For an open file: s = fileProperties.getItems "General" s = s[s.count-3] Returns: #("3ds Max Version: 17.00", "Uncompressed", "Build: 17.3.374.0", "Saved As Version: 17.00") "3ds Max Version: 17.00" But I've tried for an external file…
Forum topic
0 commentsBitarrays (Follow array Problem) [SOLVED]
I'm trying to figure out why the arrays is not following like it's suppose to or at least I think it should. See code below: try(destroyDialog test)catch() rollout test "test" ( editText fileinfo_lb "Info/Selected File Info:" height:50…
Forum topic
2 commentsinclude function ERROR = '-- Compile error: include expected filename string' [SOLVED]
Hi all, This works: srchDir = GetDir #scripts scripts = getfiles (srchDir + "\\" + "CoronaConverter_v*.ms") sort scripts CoronaConverterlatest = scripts[scripts.count] global CoronaConverterGUI = try(CoronaConverterNoGui = true)catch()…
Forum topic
9 commentsRENAME - modifier.classes.name to object.name [SOLVED]
Self explanatory really. Arrays sort of scare me but I'll get them down eventually but I'm sure this is a case where I can collect the Modifiers.name and then send that to the object name resulting in a final result for the objects name to…
Forum topic
3 commentsStreamstream (Can it be used to store seperate strings and then replace?)
OldStringCorona = "_Corona" OldStringVRay = "_Vray" OldStringScanline = "_Scanline" NewString = "" --fileName = getFilenameFile (maxFilename) fileName = "sdd_Scanline" if fileName != undefined and matchPattern fileName…
Forum topic
4 commentsconvert: undefined to type: String PROBLEM [SOLVED]
OldString = "Arch137" as string -- Change to suit NewString = "AM137" as string -- Ditto theMaps = getClassInstances BitmapTexture for i in 1 to theMaps.count do ( fileName = theMaps[i].filename if matchPattern fileName pattern:"AM*"…
Forum topic
15 commentsAsset Cleaner
V1.0 See additional info below V1.1 Some minor bug fixes Added option to save instead of autosave Will automatically rid and reload the file of unwanted 'Motion Clips, Layer Controls + Retimer Managers' [ONLY checks drawings of 5mb and…
Script
0 commentsSystem.Windows.forms.WebBrowser (For error see screenshots)
See code below for opening a radio station from maxscript. Problems have been attached as images. And the website I'm trying to open is: http://www.bbc.co.uk/radio/player/bbc_radio_one I'm sure it's something to do with .ObjectForScripting…
Forum topic
2 commentsRight Click for custom default value
How do you do this when you have the code for the spinner button like so: spinner spn_output_width "" pos:[48,64] width:56 height:16 range:[2,32768,1] I've tried: on spn_output_width rightclick do ( print "btn_A was rightclicked" ) I want…
Forum topic
6 commentsRegionRender
Simple script. Self explanatory really. See screen shot above. Script found under the category '3dwannab' (drag the .mzp file into the max window to see further instruction, if you added the icon please restart max to see it in the…
Script
15 commentsLink for Outliner 3 in description (max 2014) Needs work to finish
LINK: https://github.com/Pjanssen/Outliner-3.0 I'm sure Pjanssen won't mind me posting a link to the v3 of his fabulous script. This seems not to be fully working. Perhaps someone here might have the know-how and interest to take it on. I…
Forum topic
0 commentsRemove unused unwrap maps from modifier loading into scene maps
To see what I mean more clearly see the attached jpegs. 1st: Unwrap dialog. This shows maps that are associated with the unwrap modifier. 2nd: Those maps then appear in the scene materials in the material/map browser. I can manually go and…
Forum topic
1 commentShutDownSave
ShutDownSave V2.0 by 3dwannab (◣_◢) - 16/09/14 ------------------------------------------------------------------------------------ Dev. by Stephen Sherry. http://www.scriptspot.com/users/3dwannab Free for all use and / or modification. If…
Script
7 commentsHelp with the trimleft/trimright function
I've taken my favourite script and tried to learn from it. It's probably is a bit complicated for a beginner but I really wanted to add a function to trim any leading and trailing whitespace characters and also add an option for Title case…
Forum topic
23 commentscombine .mat file's in 1
may be a simple script for some of you expert's. Select several mat's and combine then using there file name's if possible... In addition the same tool would allow a drag and drop function into the material browser or mat editor. Thanks in…
Forum topic
6 comments