Scripts

How To Record Actions in 3ds Max like in Photoshop

I was looking for a way to repeat some of the most common tasks I perform in 3ds max. It turns out that using MAXScript is the way to do it. Don't let the word 'script' scare you, it is pretty easy. The task I wanted to create an 'action' button for was. -Apply UVW Map -with Box Mapping and Real-World Scale

To create the Script we need an object to record the action from. So just create a box.

Click on MAXScript (next to Help) on the top menu. Select MAX Script Listener

This Box will pop up, Click MacroRecorder and Enable from the dropdown. 1 Now what ever you do will be recorded, like in Photoshop actions.

Apply a UVW Map > Mapping to Box > tick Real-World Map Size Turn off the MacroRecorder by hitting enable again.

This is what you have. modPanel.addModToSelection (Uvwmap ()) ui:on $.modifiers[#UVW_Map].maptype = 4 $.modifiers[#UVW_Map].realWorldMapSize = on $.modifiers[#UVW_Map].utile = 1 $.modifiers[#UVW_Map].vtile = 1 $.modifiers[#UVW_Map].length = 1 $.modifiers[#UVW_Map].width = 1 $.modifiers[#UVW_Map].height = 1 Select all the text and copy it.

At the top of Max go to MAXScript again and New Script. Paste in the code.

At the top copy and paste this... macroScript UVWmap category:"Jaked3d" buttonText:"UVWmapRWS"

You can change the name of the Script (UVWmap) category:"(Jaked3d)" and buttonText:"(UVWmapRWS)"

Add brackets to the top and bottom of the code like below

Max Script

Now in MAXScript > File > Save where you like In MAXScript > Tools > Evaluate All

Now in the top menu in 3ds Max Select Customize > Customize User Interface In the Toolbars tab in Category you should find what you called your category you can now drag it 'Uvwmap' onto the Main Toolbar.

3

You can now select any object in your scene and apply your script. You can download this one here. Jaked3d UVWmapRWS

You can then combine your 'actions' with other scripts. For example I recorded the same action in the above example with the Centre and Reset script from Frodos Magic Bag to centre the pivot of an object > reset xform > apply uvw map with box mapping and real world scale, in one hit of a button.

Search Macro Scripts in 3ds Max Help for lots more info.

Top 5 Free 3ds Max Scripts and Plugins

Recently I have been trying out quite a few scripts and plugins to speed up my work flow in 3ds Max. I highly recommend browsing scriptspot.com for useful scripts. But to save so time and kick you off here is what I have been using recently. Please note that not all of these are available on Sciptspot but there is a link to each download. So in no particular order here are my Top Five Free 3ds Max Scripts and Plugins. Wireframe Render jokermartini.com/2010/04/30/wireframe-render/ Wireframe Render is a script from John Martini over at jokermartini.com. I have found this one very useful for creating wireframe renders for Turbosquid for example. Wireframe Render uses a simple interface that enables the user to quickly and easily create wireframe renders. I would also recommend checking out some of John's other cool tools available at jokermartini.com/extras/ including cobwebs and Select Intersectors.

WireFrame max1
Render Mask www.scriptspot.com/3ds-max/scripts/rendermask Render Mask allows you to quickly render masks such as object ID's and Materials ID's which I find extremely useful. It is possable to do this in 3ds Max Render Elements but this is handy after you have rendered and maybe you need to get a mask without re-rendering. This plugin is a massive time saver when trying to create varous types of masks for use in post production. It is by Ivan Tepavicharov and this video should explain how to use it.

https://vimeo.com/26107414 Center and Reset www.scriptspot.com/3ds-max/scripts/frodos-magic-scripts-pack This neat script is from Frodo's Magic Scripts Pack. It resets the xform on an object and centers the pivot point in one click. I use this alot and find it to be a big time saver.

Copitor www.scriptspot.com/3ds-max/scripts/copitor This has to be one of my favourites. I have posted about Copitor before here and I am still using it all the time. Copitor lets you copy and paste objects between 3ds Max scenes. I also find it useful to grab the material off the object rather than having to export it.
Create.jpg1734c757-7eae-443a-b500-f8ddf77cc004LargeIvy Generator www.guruware.at/main

Ivy Generator hass been around for a while now and I think it is great. I am always looking out for places I can put it in my scenes because it looks great and it is so easy to use. It is also very customisable with your own leaves etc. Here is a great video tutourial from Sachin Joshi over at CGTuts.

Autodesk 123D Catch Beta

123D Splash
I was very excited to hear about Autodesk's 123D Catch. 123D Catch lets you take ordinary photos and turn them into 3D models. Here is a quick introduction.

http://www.youtube.com/watch?feature=player_embedded&v=6aU2s85Zw3A

recieved

So I downloaded the software from here. The software comes with some good tutorials and the program is pretty straight forward to use. For the object I wanted to create I took 42 photos spinning around the object. I uploaded them and waited for Autodesk to email to let me know it was completed. A couple of the images were too dark so the object I received was not 100% but 42 images is probably the minimum I would suggest.

It looked pretty good if I do say so myself. Next, what I was most excited about was getting it into 3ds Max. This was simple, File, Export, FBX and import into Max, this is what I got below.

 

 

import

The scene contains cameras where all the shots were taken from, which could come in handy. I then opened up the Material Editor and selected the material from the object. There were two in this case. The file Autodesk emailed me contained to texture sheets which I remapped to the correct location and below are the 2 texture sheets and the result i got.

 

 

 

textures
I then added a Mental Ray Daylight system and applied a smoothing group to the whole object and rendered. Below are the results. The mesh was very heavy and if I had more time I could have cleaned it up a lot and patched up any broken areas in the model.
render wire
Catch 123D is an amazingly powerful tool which I am sure will come in handy in future. Definitely give this free software a try and let me know how you get on.

Copitor is a must have for a 3ds Max user

MXS_CopitorCopitor is a 3ds Max script by Mathieu Jacquin which allows you to copy and paste selected objects to another 3ds Max scene or to another window if you have more then one 3ds Max open. It is also useful to back an object up before you try something, such as booleans! You can download it here.

To install... Drop The file in max viewport and go to Customize ==> Customize User Interface ==> Category: zOffTy Tools ==> Copitor