HomeNewsFeaturesLicensingDownloadsScreenshotsFAQRoadmap Contact Us
Search:
8 Online

Community

Discussion Topics Recent Postings User Contributions General Articles Example Documentation Credits

Licensed Developer

Programmer's Manual Artists Manual Tutorials and Articles

Programming: Game Code

Game Code Overview Server Side Game Code Client Side Game Code

Programming: System

Alphabetical Function List Renderer File System Collision & Ray Casting Low Level Audio Game Audio The Console Console Variable List Multiplayer Localisation Maths Library Memory Manager Model File Formats Texture Formats

Art: Overviews

Specifications Shaders Particle Systems Lens Flares Cipher console Cipher file types Tutorials Reference

Art: Tools

Shader Designer Particle Designer 3dsmax tools Model Conversion Font Generator

Cipher Engine
Game Development Search Engine
GameDev.net
You are not signed in - [sign in] [register]

Scaling & Moving Problem in Max solved

Overview

Author: codeman01101001
Date Submitted: 2004-01-29 16:06:03
Downloads: ApplyTransform.mcr

Source Code

(
rollout transform_rollout "Cipher Transform Helper" 
( 
 label lab1 "Note: This helper dont work correctly with mirrored objects" 
 checkbox collapseall "Collapse all selected Objects (to prevent errors)" checked:true
 button applyall "Apply XForm to all selected Objects"
 on applyall pressed do 
 ( 
   for i in selection do 
   (
    if (i.parent == undefined) then 
    (
     if(collapseall.checked == true) then
     (
      convertToMesh i
     )
     
     -- apply an XForm modifier to the node
     local xformMod=xform()
     addmodifier i xformMod
 
     -- set the XForm modifier's gizmo tranform
     xformMod.gizmo.transform=i.transform
     i.transform = identity i.transform
    )
   ) 
 )--end on 
)--end rollout 

createDialog transform_rollout 300 70
)


Screenshot

Description

With this script, the leveldesign in Max is a bit more comfortable now.
You don't need XForm anymore. Now you can move, scale and rotate the objects in your maxlevel, after all that activate this script and export...nothing more

Put the File in

UI\MacroScripts\SoupMacros

More information how to use scripts in max look here:

http://www.cipherengine.com/tutorials/GettingStarted2.php



Note: This helper dont work correctly with mirrored objects

[Recent Contributions] [Recent Source Code]



Register and Sign In to discuss this article