emrahgunduz
always eats his vegetables
Blog RSS Feed
  • twitter
  • friendfeed
  • linkedin
  • facebook
  • vimeo
  • flickr
  • lastfm
Random Rotate Maxscript Version 1.1

Random Rotate Maxscript Version 1.1

I’ve changed how random rotate works, and added a few new features. First of all, rotation now uses quaternion, which is better than euler rotation. I was converting euler angles to quats, this was getting rid of the gimbal lock, but it was not enough for adding new ways of rotation to the script.

Download Random Rotate 1.1

So, with new version, you are now able to rotate an object randomly bu using objects’ local or world coordinates, or the screen coordinate itself. Also, it is now possible to use the selection center, or another object’s pivot.

I don’t know where you can use these new features, but it was fun building them in. Have fun :)

Here are some screenshots:

  • Drag drop to start the script
  • Script popup appears
  • World Z only random rotation
  • Screen Z only random rotation
  • Selection center Z only random rotation
  • Selected object Z only random rotation

This post's short url is: http://emrg.me/8h

Random Material Assigner for Objects with Multiple MaterialIDs

Random Material Assigner for Objects with Multiple MaterialIDs

Works on one or multiple object selections. Script detects the materialID count and creates a multi-sub material(s) for the selected object(s), and changes the diffuse channel with a random color. If there is only one materialID on the object, script simply creates a standart material.

Download Random Material Assigner for Objects with MaterialID

As this is a macroscript, after running it, you need to add it to a quad menu, or an icon on a toolbar, or to a menu. Script’s category is “emrahgunduz.com”.

Keep these in mind

  • Created materials are named after the object’ own name.
  • Materials in the multi-sub object will be “Standard”.
  • Changes diffuse channel color with a random one.
  • Works only with poly, mesh or patch object. There is no nurbs or basic object support.

Here are some screenshots

  • Drag drop script for installation
  • Add script to your quad menu or to a toolbar
  • Select your object and run the script
  • Your object is randomly materialized

This post's short url is: http://emrg.me/8i

Random Scale Maxscript

Random Scale Maxscript

This one, as you can guess, randomly changes the scale of the selected objects. You can scale in uniform, or any axis alone or together.

Download Random Scale Maxscript

Script allows you to scale any object. Plus you can randomly scale incrementally. This will cause objects get bigger and bigger (or smaller and smaller, depending on the random multiplier).

Here are some screenshots

  • Drag drop to start the script
  • The popup appears
  • Random scale your selected objects
  • Incremental random scale

This post's short url is: http://emrg.me/5q

Randomly Delete Objects With Maxscript

Randomly Delete Objects With Maxscript

The script randomly deletes meshes from the selection. As the script depends on the random numbers created by 3dsmax, the percentage can be %0-1 off what you expected. Just select the meshes you want to randomly delete. Enter a percentage, click the Delete button.

Download Random Delete

Here are some screenshots

  • Just drag drop for startup
  • Script comes to life
  • 10 percent random deletion
  • 50 percent random deletion
  • 90 percent random deletion

And here is the code if you want to check it right away

rollout RDGUI "Random Delete v.1.0" width:184 height:144 (   spinner s_percentage "" pos:[112,8] width:48 height:16 enabled:true range:[0,100,50] type:#integer   button b_delete "Delete" pos:[56,40] width:72 height:20   label l_percent "%" pos:[163,8] width:12 height:16   label l_info "Deletion Percentage :" pos:[8,8] width:104 height:17     on b_delete pressed do   (     per = s_percentage.value as Float / 100     sel = selection as array     count = 1         if sel.count > 2 then     (       undo on       (         while count < sel.count do         (           rand = random 0.0 1.0                     if rand < per do (delete sel[count])           count += 1         )       )     )     else messageBox "You must select at least three or more objects" title:"Random Delete"   ) ) RDFloater = newRolloutFloater "emrahgunduz.com" 195 100 addRollOut RDGUI RDFloater

This post's short url is: http://emrg.me/5n

Calendar

May 2012
M T W T F S S
« Feb    
 123456
78910111213
14151617181920
21222324252627
28293031  
Web Analytics
Author: Emrah Gunduz