FORUMS: list search recent posts

particle radius based on camera position

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Curt Saeui
particle radius based on camera position
on Aug 17, 2009 at 9:35:14 pm

Basically I'm trying to control the radius of the particles so that the ones closer to the camera are smaller while ones that are farther away are larger. It's basically this tutorial I found but the expression gives me a syntax error.

http://jeremyraven.co.nz/particle_expressions7.html

any help would be much appreciated...


Return to posts index

Alvaro Castaneda
Re: particle radius based on camera position
on Aug 17, 2009 at 9:49:41 pm

Hi
That does work

just make sure you change the name for your particleShape or use the default
and you are viewing from the persp cam, or again change that to your cam

create the radiusPP attribute in your particle shape and add the expression there, before dynamics

----------------------
varomix - pixelEater
http://www.intelianimate.com


Return to posts index

Curt Saeui
Re: particle radius based on camera position
on Aug 17, 2009 at 10:17:41 pm

Hey Alvaro,

Thanks for the quick response. I had tried all that and still gave me the error. When I add the expression line by line the first syntax error comes up after the second line

vector $camPos = `xform -q -ws -t persp`;

Not sure what else I could do wrong since this is such a simple setup/expression.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]