Introduction to Maya - Modeling Fundamentals Vol 2
This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 1 20-04-2006 , 10:49 PM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695

lots of collision

So I need my particles collide with about a couple hundred poly objects that are all animating independently. I could assign them one by one, but then editing the values would be a nightmare. Maya doesn't seem to allow you to link a hierarchy as a collider.

Does anyone know of a work-around for this?

I was looking into some way to combine all of the objects into one and bake the animation to be vertex based. However, I can't seem to find a way to do this.

Anyone?

Thanks all.

-dann

# 2 20-04-2006 , 11:24 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
To automate the one-by-one make collide you could do this. Select your particle, then all the objects you want it to collide with and run this code:
Code:
{
	string $sSel[] = `ls -sl`;
	int $i;

	for($i = 1; $i < size($sSel); $i++)
	{
		collision -r 1 -f 0  $sSel[$i];
		connectDynamic -c $sSel[$i] $sSel[0];
	}
}
As far as editing the collision attributes you could first run this command:
Code:
select -r `ls -typ geoConnector`;
and then open up the attribute spread sheet and edit the values...


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
# 3 20-04-2006 , 11:48 PM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks KB. I actually wrote the inital script myself but I was hoping someone else had a better solution.

It'll have to do.

Posting Rules Forum 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

Similar Threads