Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
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 03-02-2008, 05:33 PM   #1
wjpiovano
Registered User
 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Moving Nodes With MEL

Hi all.

I'm writing a script which does some automated crossing of objects. That is, it should "mix" two objects together (their deformers, transformations..etc). What I'm having trouble actually doing is moving the nodes of one to the other. For example (in pseudo):

create nurbsSphere1
create lattice deformer on nurbsSphere1
move lattice points around
create nurbsSphere2
move nurbsSphere2 control points around

how do I take the modified lattice of sphere1 and apply it to nurbsSphere2? Similarly, how to take the exact modifications of control points of sphere2 over to nurbsSphere1?

I was thinking, just cut the couple of nodes needed for lattice and plug them into shape. I'm not quite sure how to do that, though, and if it would actually work. Different transforms/deformers require a different number of nodes. (All this has to be automated, which is why I can't do it manually).

Thanks.
wjpiovano is offline   Reply With Quote
Old 04-02-2008, 03:09 AM   #2
t1ck135
Registered User
 
t1ck135's Avatar
 
Join Date: May 2004
Location: UK
Posts: 1,991
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just had a quick look into lattice deformers and the connections it generates in the hypergraph:connections window and it looks a bit crazy. Like you said, I hunted down the connections and tried stripping them and reconnecting to another sphere but to no avail.
It looks like you'll have to dive in proper and get your hands dirty on this one as the help doesnt mention anything either

Simon
__________________
Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
t1ck135 is offline   Reply With Quote
Old 04-02-2008, 05:23 AM   #3
wjpiovano
Registered User
 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah that's what I thought. I think what I'll do is just detect if there's a lattice, and if there is, then I'll run the "lattice ..." command in MEL, reading the values from the node to pass as arguments.

It's the only way I can think of...

Thanks!
wjpiovano is offline   Reply With Quote
Old 04-02-2008, 05:07 PM   #4
BadG3r
Subscriber
 
BadG3r's Avatar
 
Join Date: Jan 2007
Location: Frankfurt
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
Default

came to the same conclusion... as you two.
havent found an easy way to do it.
BadG3r is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache! happymat27 Members Lounge 5 05-12-2010 09:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 04:41 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-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.