Forum > Resources and Tools
[TOOL] [M2 edit] model resizer
(1/2) > >>
Eluo:
ModelResizer by Tigurius
About this tool:. This tool allows the user to resize a model by a given value.
Additional Info: 1 = equal 0.5 = 50% of the size 2 = 200% of the size
This is a commandline tool, so use the cmd console!
Download: [attachment=0:2glh14mn]modelresizer.rar[/attachment:2glh14mn]
External: File-upload.net Mediafire.com
Vel:
Warning: This tool does not resize Animation coords! ------ In this case, you must use Tigurius python Resize Script: How to use: * Open Resizer.py in notepad Worldpad or other TXT editor. * Edit 3 lines:
1) The way to model m2 = M2File (Specify your path):
--- Code: ---m2 = M2File("E:\Tools\V50pymodeleditor\pymodeleditor\16.m2") --- End code ---
2) Path to saved model(Specify your path):
--- Code: ---m2.write("E:\Tools\V50pymodeleditor\pymodeleditor\16.m2") --- End code ---
3) Amount to be changed resize factor: Example:
--- Code: ---scale = 0.02 --- End code --- (Reduced 50 times) (needed for MDXconv)
4) Save and close Resizer.py
* Run Resizer.py * Profit! ---------- Do not change the size of which: * Camera Coords * Particles Size * Ribbons Size * Boundbox ---- Modifies size: *Bone animations coords *Bones coords *Geosets Coords
NOTE: Script Python requires (preferably 2.6, at others not tested)
Special thanks to Tigurius for script 8-)
Zim4ik:
This pyton script work not well. It dont resize attachments. to fix this just replace
--- Code: ---for i in m2.bones: i.pivot.x *= scale i.pivot.y *= scale i.pivot.z *= scale for j in i.translation.KeySubs: for k in j.values: k.x *= scale k.y *= scale k.z *= scale --- End code --- with
--- Code: ---for i in m2.bones: i.pivot.x *= scale i.pivot.y *= scale i.pivot.z *= scale for j in i.translation.KeySubs: for k in j.values: k.x *= scale k.y *= scale k.z *= scale
for j in i.scaling.KeySubs: for k in j.values: k.x *= scale k.y *= scale k.z *= scale --- End code ---
in resizer.py
spikee:
I need the Tigurius python Resize Scrip , please give me :S
Ascathos:
--- Quote from: "spikee" ---I need the Tigurius python Resize Scrip , please give me :S --- End quote --- ... Are you for real ?
Navigation
[0] Message Index
[#] Next page
|