SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Maya Questions / Programming / creating a particle grid on plane or otherway round.

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
 
Thread Tools
19-05-2008, 07:45 PM   #1
bendingiscool
Subscriber
 
bendingiscool's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 567
creating a particle grid on plane or otherway round.
Hey guys,

Was wondering how would I go about either setting a particle grid to be made on the position of a plane or have a plane be created at a particle grids postion?

I am guessing it goes along the basis of finding the particle grid's position at setting it up that way but am pretty stuck where to go from there. I can get a particle ID's postion by using the 'getParticleAttr' command and specifying the first particle, but am not sure where to go from here.

Many thanks in advance,
Chris
  Reply with quote
19-05-2008, 07:58 PM   #2
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
If you've got the particles position in space where you want the plane to be then stick that into a attribute and use it to be the position of the plane (using Xform or move)
__________________
"No pressure, no diamonds" Thomas Carlyle
  Reply with quote
19-05-2008, 09:25 PM   #3
bendingiscool
Subscriber
 
bendingiscool's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 567
Thanks for the speedy reply gster! However I am still fairly new to mel so am not sure how I would go about doing that and in which order, please enlighten lol.

Chris
  Reply with quote
19-05-2008, 11:33 PM   #4
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
If you use the getParticleAttr so that it contains the data that you want, just have that as the position of the plane, as I aint got maya open it might be some thing like this.

move -a `what you want to do here so its XYZ positions` objectname ;

Theres a probably a more elagant solution to it...
__________________
"No pressure, no diamonds" Thomas Carlyle
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Polygon plane crashes Mental Ray (fatal..null DB tag) jttraverse Lighting & Rendering 0 15-05-2015 02:45 AM
particle count on particle grid? lori_hunter Dynamics & Special Effects 1 02-05-2005 01:54 PM
grid on image plane beritsmerit2 Maya Basics & Newbie Lounge 12 13-04-2005 05:19 PM
fur rendering failed????? olivermagno Maya Materials & Textures 2 21-05-2003 01:36 AM
Texture or material on particles? dax3d Dynamics & Special Effects 6 24-04-2003 12:07 AM