algorithmic modeling for Rhino
<UPDATE> The component has been updated for Grasshopper 0.8. also new option to allow you to not inport the rgbPP attribute.
I have created a new definition for grasshopper that will import particle animations from Maya into grasshopper. The importer works in realtime, so if you have maya and grasshopper opened at the same time any changes to the particles in maya will be reflected in Grasshopper. Right now I only import two attributes, position as point and velocity as a vector. The script is open and easy to add any property you want to carry over. The idea behind the function is to use Maya ability to create “smarter” point cloud using forces and AI. the definition is in the download section at
how to use
1. In Maya create a particle system and add a new expression using the dynExport option.
dynExport -atr position -atr velocity -atr rgbPP -f pda NameOfParticle
or
dynExport -atr position -atr velocity -f pda NameOfParticle
Look at the Maya docs if you are not familiar with the command or expressions
2. Maya will write out the particles in real-time usually to a folder named “particles” in you Maya project directory. The file names will be the same name as the particle system name. input the name of the path and the name of the file into Ploc and Pname. For example.
Ploc = C:\Users\robert\Documents\maya\projects\particleTest\particles\test\
Pname= nParticleShape1
3. FRAME will control the frame number of the particle animation in maya
4. SCALE will scale the particle system 5. SWAPY will flip the Y and Z axis
5. UseRGB - if True will try to import the rgbPP attribute.
Comment
oh,thanks
actually add both...add per particle and add per object
Robert, I have figured out a way..
We can use still use legacy particle system with rgbPP atr
1.make a particle grid
2.set render apperance as sphere
3.now go to ''add dynamic attributes'' and select ''color''
4.now select all the particles and select'' add per particle'' from the dialogue box just appeared
now u can use ''dynExport -atr position -atr velocity -atr rgbPP -f pda NameOfParticle'' command without any error and robert's code does accept it without any error..
if u have any problem mail me @ colors1990@gmail.com
Alex,
the update is on my site www.cerver.org. and if you using legacy particles then omit the rgbpp part of the expression
take a look above at the how to use, you can omit rgbPP and it will work fine.
dynExport -atr position -atr velocity -atr rgbPP -f pda NameOfParticle
or
dynExport -atr position -atr velocity -f pda NameOfParticle
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by
You need to be a member of Grasshopper to add comments!