Welcome to SimplyMaya

SimplyMaya.com has been teaching Maya for eleven years. We believe in teaching the fundamental principles of 3D by example. In our online library you will find more than 500 hours of video training.
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 02-04-2012, 06:38 AM   #1
G-Man
Subscriber
 
G-Man's Avatar
 
Join Date: May 2004
Location: Bowling Green. Kentucky U.S.A.
Posts: 809
Thanks: 9
Thanked 27 Times in 23 Posts
Default Script Request

I was hoping that maybe someone like Next design who kindly offer their mel scripting talents to us all might be willing to undertake a challenge for me.

In my modeling for clients to have rapid prototyped meshes put out of some subjects i am sometimes given a pre made model to work with. Once the model is scaled to the final size sometimes i have to go back and re-size the details. Usually these details are either A, panel lines, or B, raised greeblies (normally modeled as separate objects)

My request is can someone please make a script that will allow me to select the outward facing polygon(s) on a greeblie and extrude them a specific distance along an axis set to the face, or perpendicular to the face that is selected.

IT is very time consuming to have to select each face and do this separately, sometimes i have to do this with upwards of 20k polys to get the details sized properly. To be honest it doesn't even have to move the faces, just translate along a path that is "Set to face" and give me a way to either See the distance translated, or input a specific number. Obviously I'll have several polygons facing different directions so they would all need their own translation orientation. Would it be possible to have the script auto select outward facing polygons on separate greeblies all at once?

Failing this, if it is impossible, would it be possible to write a script that gave me a window and showed me the distance that the polygon had moved along the Locally selected axis? For example when you extrude a poly that is rotated at some odd angle, 45 degrees in x and 27 in y and 33 in z or what ever, you get the the channel box readout stating that it is been translated 0.00 (or what ever) in local x,y,or z .

Any help would be most appreciated on this. and thank you in advance for the time spent doing it.

George

Last edited by G-Man : 02-04-2012 at 06:40 AM.
G-Man is offline   Reply With Quote
Old 14-04-2012, 05:36 AM   #2
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Location: Toronto, Ontario, Canada
Posts: 3,213
Thanks: 34
Thanked 514 Times in 452 Posts
Default

Wow, I just noticed this. Sorry mate.

Could you create a video or a series of images with what you want? I don't quite understand what you want. :/
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 14-04-2012, 06:00 PM   #3
Jay
Administrator
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,183
Thanks: 39
Thanked 422 Times in 379 Posts
Default

Man, did I not test this on site for you? What was my answer?

Jay
__________________
http://www.jays-studio.com/

http://jayedwards.cgsociety.org/gallery

The Man in Black fled across the desert, and the Gunslinger followed....
Jay is offline   Reply With Quote
Old 14-04-2012, 07:43 PM   #4
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Location: Toronto, Ontario, Canada
Posts: 3,213
Thanks: 34
Thanked 514 Times in 452 Posts
Default

Originally Posted by Jay View Post
Man, did I not test this on site for you? What was my answer?

Jay
........ Huh?
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 15-04-2012, 02:38 AM   #5
G-Man
Subscriber
 
G-Man's Avatar
 
Join Date: May 2004
Location: Bowling Green. Kentucky U.S.A.
Posts: 809
Thanks: 9
Thanked 27 Times in 23 Posts
Default

Originally Posted by Jay View Post
Man, did I not test this on site for you? What was my answer?

Jay
I posted this a few days before i sent you that e-mail Jay. You're answer worked well for the common extrudes.

I do still think that a script or plugin that would allow you to see the translation value of a selected component along the selected axis would be brilliant though. I'll see if i can get a screen grab series demonstrating what i mean there for you ND.

No problem on the reply. Ironically the job that i was working on that had this problem got postponed till after a big convention next month, i was asked to do something else in its stead.. a Studio accurate GR-75 Rebel Transport..yey...

George
G-Man is offline   Reply With Quote
Old 15-04-2012, 03:01 AM   #6
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Location: Toronto, Ontario, Canada
Posts: 3,213
Thanks: 34
Thanked 514 Times in 452 Posts
Default

Could be worse. They could've asked you to model a Morris Marina

Yes... That was a Top Gear reference...
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 15-04-2012, 03:22 AM   #7
stwert
EduSciVis-er
 
Join Date: Dec 2005
Location: Toronto
Posts: 3,048
Thanks: 57
Thanked 648 Times in 585 Posts
Default

Cue the piano falling...
__________________
-stwert

Website - Blog - Vimeo - Facebook - Twitter

"There are a million ways to achieve something in Maya, and only 500,000 of those ways are a bad
idea." -Eric Keller
stwert is offline   Reply With Quote
Old 15-04-2012, 10:09 AM   #8
Jay
Administrator
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,183
Thanks: 39
Thanked 422 Times in 379 Posts
Default

Okay cool, I still think that for the more angular stuff, you are pretty stuck, unless theres history on those faces. Thats why it works with my method, the extrude puts the history on it at that angle so the tool knows. A Coords script would be hard for those without history, thats why I mentioned modo for it, as did someone else if I recall you saying....its a no brainer then

Jay
__________________
http://www.jays-studio.com/

http://jayedwards.cgsociety.org/gallery

The Man in Black fled across the desert, and the Gunslinger followed....
Jay is offline   Reply With Quote
Old 15-04-2012, 08:48 PM   #9
G-Man
Subscriber
 
G-Man's Avatar
 
Join Date: May 2004
Location: Bowling Green. Kentucky U.S.A.
Posts: 809
Thanks: 9
Thanked 27 Times in 23 Posts
Default

Aye, Modo. I need to learn that program i just don'e have time to do it with all the client demands on me atm.

The biggest problem i had with extrudes using your method on that model was the fact that all the greeblies were beveled, and when i extruded the poly sitting in the proper direction then it left a huge step looking area, which would show up on the prototype. If i extrude all of the polys that are taken in to the bevel then i get some screwed up extrusion that resembles a mushroom head.. My solution was to extrude the bevel then just scale the extruded areas in till it blended pretty close to the original tapered area.

Prototyping is a fun job, its amazing to be able to see your 3d models come to life as real subjects...but. Getting it all right is crazy, things that you could let go in visual effects cannot be overlooked in prototyping..and conversely things that you would have to fix on a model for rendering, can be totally ignored for a prototyped mesh.

Jay. If you want, i can show you pictured of the Prototyped Action VI (Wild KArrde) transport i send you in progress images of, finally got it in the mail a few dyas ago and snapped a few images before i sent it to the client.

George
G-Man is offline   Reply With Quote
Old 29-04-2012, 06:14 AM   #10
G-Man
Subscriber
 
G-Man's Avatar
 
Join Date: May 2004
Location: Bowling Green. Kentucky U.S.A.
Posts: 809
Thanks: 9
Thanked 27 Times in 23 Posts
Default

Originally Posted by NextDesign View Post
Could be worse. They could've asked you to model a Morris Marina

Yes... That was a Top Gear reference...
They just asked me to model a 33 inch long Medical frigate (nebulon B)...
Gave me a list of parts that were used to kit bash the studio model, and i have to track down kit scans of all of them, model them, re-size them, engineer a parts break down, and make sure its spot on, its a fan favorite and its been researched heavily in the scale modeling world. At 33 inches any errors will stick out like a sore thumb.. Quote on job... 2500$

Fun wow!

George
G-Man is offline   Reply With Quote
Old 29-04-2012, 04:52 PM   #11
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Location: Toronto, Ontario, Canada
Posts: 3,213
Thanks: 34
Thanked 514 Times in 452 Posts
Default

Or use that money towards a 3d scanner

http://www.nextengine.com/
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 29-04-2012, 05:08 PM   #12
ctbram
Moderator
 
ctbram's Avatar
 
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,949
Thanks: 42
Thanked 563 Times in 515 Posts
Default

Jay could you please post your method I oculd have a use for creating greebles and I am curious what method you use.


What was the advantage to using modo? I feel like I am sitting in on a lecture and missed the first 15 minutes lol.

thx
__________________
"If I have seen farther, it is by standing on the shoulders of giants." Sir Isaac Newton, 1675

Last edited by ctbram : 29-04-2012 at 05:11 PM.
ctbram is offline   Reply With Quote
Old 29-04-2012, 05:53 PM   #13
G-Man
Subscriber
 
G-Man's Avatar
 
Join Date: May 2004
Location: Bowling Green. Kentucky U.S.A.
Posts: 809
Thanks: 9
Thanked 27 Times in 23 Posts
Default

Originally Posted by NextDesign View Post
Or use that money towards a 3d scanner

http://www.nextengine.com/
For that to be of use, i'd have to A, have several thousand dollars to buy the donor kit parts to scan.
Or B, have access to the studio model.

I have though been asked if i would consider buying a 3d scanner to work with. IF enough demand comes out of it i will eventually buy one. Right now though I wouldn't have been able to make the investment back i a 2 year time frame, so it hasn't proven to be worth it atm.

George
G-Man is offline   Reply With Quote
Old 29-04-2012, 06:14 PM   #14
Jay
Administrator
 
Jay's Avatar
 
Join Date: Feb 2003
Location: UK
Posts: 6,183
Thanks: 39
Thanked 422 Times in 379 Posts
Default

CTbram

Its not a method for creating them, it was purely keeping history on extruded faces for editing later on, especially those that have been extruded at an angle. If history is deleted and frozen transforms have been done its basically impossible to edit the extrusion again especially the angled ones.

Modo has the ability to overlook such probs

J
__________________
http://www.jays-studio.com/

http://jayedwards.cgsociety.org/gallery

The Man in Black fled across the desert, and the Gunslinger followed....
Jay is offline   Reply With Quote
Old 29-04-2012, 06:49 PM   #15
ctbram
Moderator
 
ctbram's Avatar
 
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,949
Thanks: 42
Thanked 563 Times in 515 Posts
Default

ah now I am following you. thx.
__________________
"If I have seen farther, it is by standing on the shoulders of giants." Sir Isaac Newton, 1675
ctbram is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading a Python script on a Mac ... mtcgs Maya Basics & Newbie Lounge 11 30-12-2011 05:19 PM
changing the "Quick help" window size in the maya 2012 script editor. jouri Mel Scripts & Programming 3 27-11-2011 05:15 AM
MEL script float problem?? jouri Maya Basics & Newbie Lounge 5 20-11-2011 05:32 PM
city mel script omegaend Mel Scripts & Programming 3 11-04-2011 07:41 AM
One attr key script ColdWave Mel Scripts & Programming 2 06-01-2011 10:12 PM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2014 SimplyMaya - vBulletin® Copyright © 2000-2014, Jelsoft Enterprises Ltd.