Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Dynamics & Special Effects (https://simplymaya.com/forum/forumdisplay.php?f=33)
-   -   Expression help (https://simplymaya.com/forum/showthread.php?t=8578)

Dann 24-10-2003 07:57 PM

Expression help
 
OK gang, this is what I'm trying to do...

I have a particle system of instanced geometry, and I want each instance to face the camera similar to what a sprite would do. However I can't use sprites because of the geometry instancing. I've tried writing an expression, but to no avail. (I'm still new tro writing expressions)

Can anyone help me and tell me what type of expression to write?

Thanks muchly,
-dann

kbrown 24-10-2003 08:34 PM

Hmm... tricky one...

Maybe instead of instancing you write expressions to duplicate the geometry for each particle which already had aim constraints to the camera. Just an idea...

Here's how I used this idea in the blood cell animation I did few months ago: http://forum.simplymaya.com/showthre...&threadid=6495

Dann 25-10-2003 03:00 AM

Thanks for the idea, but I know there is a way to script what I'm looking for, I'll just have to keep looking.

ragecgi 08-11-2003 03:57 AM

Have you had any luck yet?

Dann 08-11-2003 04:38 AM

No, I gave up. Actually I figured out a hack around this. I placed the center point of the particle object at the same location as my camera and linked the particle to the camera. Now when the camera loves, the particle object follows it right? Well since the particles themselves emit int the world, they don't actually care where the particle node goes. Then I asssigned the Aim Direction to be Position and they aim themselves at the position of the particle node's center point.

Not the cleanest method, but it works.

ragecgi 09-11-2003 07:15 AM

Cool:)

Sometimes a hack is the easiest way to pull off the shot.

Good goin!

Dann 14-11-2003 12:36 AM

Ugh! I just realized the stupid simple solution. Just give the object being instanced an aim constriant, and aim it at the camera. After that, every instance in the particle system will aim at the camera.

kbrown 14-11-2003 08:26 AM

:banghead: :D


All times are GMT. The time now is 04:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018