HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: 3ds MAX Script Pack  (Read 3146 times)

PN-Dwight

  • General Accounts
  • *
  • Posts: 465
    • View Profile
    • Pirates' Nest
3ds MAX Script Pack
« on: Dec 26, 12, 02:00:20 PM »

Dear community,

I'm getting pretty proficient in max-script, as well as found a technical artists... What I'm wondering is what kind of scripts are you all looking for, which could be handy for your usage with HeroEngine?

Already got:
  • User Defined properties remover for each object in the scene
  • Script with standard Pivot actions (center to object, ...)
  • BackUp Saver (Makes backups of your files without any human intervention!
  • Xform -> apply xform to all selected objects ...
  • Flip Normals
  • Layersplit

Once we get some more input, we will create the script and offer them to the community to help all artists here!

To download most of the scripts above, please visit http://www.mattiasvancamp.com/scriptpack.html ! Or of course the direct link to his complete script package: http://www.mattiasvancamp.com/files/MaVCArtScriptPack.rar
« Last Edit: Dec 26, 12, 02:08:16 PM by PN-Dwight »
Logged

AWW_boss

  • General Accounts
  • *
  • Posts: 846
  • gdfgd
    • View Profile
Re: 3ds MAX Script Pack
« Reply #1 on: Dec 26, 12, 10:51:33 PM »

User Defined properties remover for each object in the scene

What does this one do?

Logged

WorldWideZ

  • World Owners
  • ****
  • Posts: 524
    • View Profile
    • World Wide Zed
Re: 3ds MAX Script Pack
« Reply #2 on: Dec 27, 12, 04:11:45 AM »

i have a suggestion for one , not sure how possible it is to implement having never delved into maxscript , but a utility to add prefix or suffix to all material names (specifically i would use either [filename]_ or _[filename]) 
Logged

PN-Dwight

  • General Accounts
  • *
  • Posts: 465
    • View Profile
    • Pirates' Nest
Re: 3ds MAX Script Pack
« Reply #3 on: Dec 27, 12, 07:04:58 AM »

User Defined properties remover for each object in the scene

What does this one do?


Just as the title says; most of the teams here buy assets, or use modifiers or custom settings in their art that HeroEngine does not allow for. These properties show up in the "User Defined" properties.

This removes for example the LastPose = Undefined errors automatically, as well as all other properties that may conflict with HeroEngine.

i have a suggestion for one , not sure how possible it is to implement having never delved into maxscript , but a utility to add prefix or suffix to all material names (specifically i would use either [filename]_ or _[filename]) 

So some sort of automatic material-name generator with a pre-choosen suffix? I am not sure if this will collide with your technical artist with regards to importing [I hope you are following Coopers' advice on this one]

StadiThompson

  • General Accounts
  • *
  • Posts: 48
    • View Profile
Re: 3ds MAX Script Pack
« Reply #4 on: Dec 27, 12, 12:26:18 PM »

Thanks Dwight! Good stuff, I always wondered how to get rid of the Last Pose error.
Logged

PN-Dwight

  • General Accounts
  • *
  • Posts: 465
    • View Profile
    • Pirates' Nest
Re: 3ds MAX Script Pack
« Reply #5 on: Dec 27, 12, 12:33:50 PM »

Thanks Dwight! Good stuff, I always wondered how to get rid of the Last Pose error.

That script is actually just 1 line...

Code: [Select]
setuserpropbuffer (getcurrentselection()) ""

or I found this script on the internet [this is not my original work]

Code: [Select]
scene_obj=objects as array
obj_count=scene_obj.count
for i=1 to obj_count do
(
ori_prop= getUserPropBuffer scene_obj[i]                         
bad_prop="LastPose = undefined"
   if matchPattern ori_prop pattern:"*LastPose = undefined*"==true do
    (
      bad_start=findString ori_prop bad_prop
                  new_prop=substring ori_prop 1 (bad_start-1)
                  setUserPropBuffer scene_obj[i] new_prop

                )
)

Which is specifically targeted to remove the LastPose = undefined error for all objects (selected or not)

AWW_boss

  • General Accounts
  • *
  • Posts: 846
  • gdfgd
    • View Profile
Re: 3ds MAX Script Pack
« Reply #6 on: Dec 27, 12, 12:45:25 PM »

Cool, i always wondered how to get rid of those. Is it CleanFile.ms, right?

But i see that it also does some changes to the pivot and xform:
-- sets the pivot point to [0,0,0] and aligns the pivot to the world
-- resets the xForm of the object and aligns the pivot to the world

It won't mess up my models?
Logged

PN-Dwight

  • General Accounts
  • *
  • Posts: 465
    • View Profile
    • Pirates' Nest
Re: 3ds MAX Script Pack
« Reply #7 on: Dec 27, 12, 01:03:22 PM »

Cool, i always wondered how to get rid of those. Is it CleanFile.ms, right?

But i see that it also does some changes to the pivot and xform:
-- sets the pivot point to [0,0,0] and aligns the pivot to the world
-- resets the xForm of the object and aligns the pivot to the world

It won't mess up my models?

You just wish to make a new script for the removers of the User Defined properties (tuts findable on google).

Test if it messes up your models, and just don't save the .max file :)

WorldWideZ

  • World Owners
  • ****
  • Posts: 524
    • View Profile
    • World Wide Zed
Re: 3ds MAX Script Pack
« Reply #8 on: Dec 27, 12, 01:57:08 PM »

i didnt mean for it to generate the whole name , just add to whats there. Im actually covering the technical art myself , and as the asset library is based in one folder the file name must be unique , if the file name is added to the materials then the materials are unique too
Logged