>: CG Forums on 3dtotal - The best forums for CG artists :.
threedy forums home
 


top-table-gradient
Go Back   3DTotal Forums > Help, Advice and Chat > General software and hardware help
bottom-table-gradient

Reply
 
Thread Tools Display Modes
Old 27-09-2008, 10:38 AM   #1
poopipe
conscientious objector
 
poopipe's Avatar
 
 
Join Date: Sep 2007
Location: cambridge, uk
Posts: 4,234
Thanks: 3
Thanked 126 Times in 120 Posts
Awards Showcase
Threedy Top Poster - Gold: Contributing to the forums with 2,000+ posts - Issue reason: too much free time Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: he finished The Golden Grenade III: For participating in the Dominance War III and successfully finishing, well done soldier! - Issue reason: I finished Dominance War 3 Thumbs up!:  - Issue reason:  Thumbs up!:  - Issue reason: For doing a great job in helping out! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! 
Total Awards: 9
quick maxscript question

before I start down this road do the maxscript gurus present think I'll be able to automate the following process without too much mucking about?


1: import a lot of .obj files containing a number of objects from a single directory
2: rename the objects contained in the .obj files to match (well, contain) the .obj filename
3: copy a given modifer from an already existing object to the imported objects

it sounds simple enough but I'm not familiar enough with the ins&outs of maxscript to want to start hacking without some encouragement that its doable

cheers
__________________
work pigs!!


http://johnsarthole.blogspot.com/
poopipe is offline   Reply With Quote
Old 27-09-2008, 05:41 PM   #2
Mr. Bluesummers-3DT
Supplies Coordinator
 
Mr. Bluesummers-3DT's Avatar
 
Join Date: Oct 2004
Location: United States
Posts: 3,343
Thanks: 0
Thanked 11 Times in 8 Posts
Awards Showcase
Threedy Top Poster - Gold: Contributing to the forums with 2,000+ posts - Issue reason: Target reached! Threedy Top Poster - Silver: Contributing to the forums with 1,000+ posts - Issue reason: Target reached! Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: The particles tutorial got plugged along the top bar. Thumbs up!:  - Issue reason: For doing a great job in helping out! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Speed Modelling - Gold: Winner of a speed modelling challenge! - Issue reason: Winner of a speed modelling challenge! 
Total Awards: 8
Hey Poopipe!

The first and second should be a breeze, while the third might take a little more massaging.

Here's some pseudo code for how I might do it...
Code:
thisModifier = ParentObject.Modifiers[n]

for file in folder do
(
  max import file quiet:true
  max select all

  $.name = file.name
  addmodifier $ thisModifier
  max freeze selection
)

max unfreeze all
__________________
Be sure to check out my blog because there's tons of useful resources there:

Last edited by Mr. Bluesummers-3DT; 27-09-2008 at 05:49 PM..
Mr. Bluesummers-3DT is offline   Reply With Quote
Old 27-09-2008, 05:45 PM   #3
Mr. Bluesummers-3DT
Supplies Coordinator
 
Mr. Bluesummers-3DT's Avatar
 
Join Date: Oct 2004
Location: United States
Posts: 3,343
Thanks: 0
Thanked 11 Times in 8 Posts
Awards Showcase
Threedy Top Poster - Gold: Contributing to the forums with 2,000+ posts - Issue reason: Target reached! Threedy Top Poster - Silver: Contributing to the forums with 1,000+ posts - Issue reason: Target reached! Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: The particles tutorial got plugged along the top bar. Thumbs up!:  - Issue reason: For doing a great job in helping out! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Speed Modelling - Gold: Winner of a speed modelling challenge! - Issue reason: Winner of a speed modelling challenge! 
Total Awards: 8
P.S.
I checked, and taking a reference to a modifier and adding it to another object will take an instance, just like you want. =D
__________________
Be sure to check out my blog because there's tons of useful resources there:
Mr. Bluesummers-3DT is offline   Reply With Quote
Old 29-09-2008, 09:19 AM   #4
poopipe
conscientious objector
 
poopipe's Avatar
 
 
Join Date: Sep 2007
Location: cambridge, uk
Posts: 4,234
Thanks: 3
Thanked 126 Times in 120 Posts
Awards Showcase
Threedy Top Poster - Gold: Contributing to the forums with 2,000+ posts - Issue reason: too much free time Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: he finished The Golden Grenade III: For participating in the Dominance War III and successfully finishing, well done soldier! - Issue reason: I finished Dominance War 3 Thumbs up!:  - Issue reason:  Thumbs up!:  - Issue reason: For doing a great job in helping out! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! 
Total Awards: 9
ooh, nice one

the selection and renaming will be a little more involved cos there's several objects in each obj file but that gives me much hope.

you sir, are an angel
__________________
work pigs!!


http://johnsarthole.blogspot.com/
poopipe is offline   Reply With Quote
Old 01-10-2008, 08:13 PM   #5
MaggieQue
Registered User
 
MaggieQue's Avatar
 
 
Join Date: Apr 2005
Location: Singapore
Posts: 2,326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MaggieQue Send a message via Skype™ to MaggieQue
Awards Showcase
Threedy Top Poster - Silver: Contributing to the forums with 1,000+ posts - Issue reason: Target reached! Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! Speed Animation - Gold: Winner of a speed animation challenge! - Issue reason: For Excellence in Speed Animation 
Total Awards: 3
I learnt a lot from this book: 3ds Max MAXScript Essentials, Second Edition (Autodesk 3ds Max 9 Maxscript Essentials): http://www.amazon.com/MAXScript-Esse...2891862&sr=1-1

I feel that Poopipe should buy it.
MaggieQue is offline   Reply With Quote
Old 01-10-2008, 08:58 PM   #6
poopipe
conscientious objector
 
poopipe's Avatar
 
 
Join Date: Sep 2007
Location: cambridge, uk
Posts: 4,234
Thanks: 3
Thanked 126 Times in 120 Posts
Awards Showcase
Threedy Top Poster - Gold: Contributing to the forums with 2,000+ posts - Issue reason: too much free time Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: he finished The Golden Grenade III: For participating in the Dominance War III and successfully finishing, well done soldier! - Issue reason: I finished Dominance War 3 Thumbs up!:  - Issue reason:  Thumbs up!:  - Issue reason: For doing a great job in helping out! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! 
Total Awards: 9
good idea but I feel that my company should pay for it
__________________
work pigs!!


http://johnsarthole.blogspot.com/
poopipe is offline   Reply With Quote
Old 03-10-2008, 03:14 PM   #7
poopipe
conscientious objector
 
poopipe's Avatar
 
 
Join Date: Sep 2007
Location: cambridge, uk
Posts: 4,234
Thanks: 3
Thanked 126 Times in 120 Posts
Awards Showcase
Threedy Top Poster - Gold: Contributing to the forums with 2,000+ posts - Issue reason: too much free time Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! Threedy Top Poster - Bronze: Contributing to the forums with 100+ posts - Issue reason: Target reached! The Golden Eye: Producing art worthy of being linked from the frontpage of either forums or 3DTotal.com - Issue reason: he finished The Golden Grenade III: For participating in the Dominance War III and successfully finishing, well done soldier! - Issue reason: I finished Dominance War 3 Thumbs up!:  - Issue reason:  Thumbs up!:  - Issue reason: For doing a great job in helping out! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! Low Poly Game Art - Gold: Winner of a low poly challenge! - Issue reason: For Excellence at Low Poly Art - Well Done! 
Total Awards: 9
cracked it (mostly)

I've ended up doing it in 2 scripts - if anybody needs to do something similar just let me know here or by pm and I'll hand the code over
__________________
work pigs!!


http://johnsarthole.blogspot.com/
poopipe is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:45 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
all images displayed on this site are copyright the original artists and may not be reproduced, copied or published elsewhere without their express permission