Hello,
I've had trouble trying to connect node outputs to the individual particles
position attribrute.
So using the circleNode for example to make a single particle travel in a
circle, how would you connect the nodes two outputs (x,z) to the particles
position?
The only way I can think about doing it is as follows...
create a locator with 2 custom attrs. (x,z)
connect the node o/p to the loc attrs.
query the loc attrs, and place in varibles.
query varibles and edit the particle position attr.
However, this causes a problem of having to create expressions to constantly
query the loc attrs and update the particles position per frame.
It would be much simpler to have the node drive the individual particle
directly.
Does anyone know how this may be done?
Kind regards.
On Fri, Jul 24, 2009 at 3:57 PM, russell dines <[email protected]
> wrote:
> Hello,
>
> Thank you for your reply, ill check it out.
>
>
>
>
> On Fri, Jul 24, 2009 at 2:31 PM, Paul Molodowitch <[email protected]>wrote:
>
>>
>> If you want to edit them in the gui, go to component mode, select an
>> individual particle, then open up the component editor - you can
>> directly see and edit the position there.
>>
>> If you want to edit it through a script, you can use the particle command:
>>
>> particle('particleShape1', e=True, at='position', order=39,
>> vectorValue=(-0.7, 0.428757, -0.938712))
>>
>> If you have to do it through the api, it looks like the command you
>> want is MFnParticleSystem.setPerParticleAttribute()
>>
>> - Paul
>>
>> On Fri, Jul 24, 2009 at 3:13 AM,
>> [email protected]<[email protected]> wrote:
>> >
>> > hello,
>> >
>> > I've been trying to move particles individually, however, they do not
>> > contain translation attributes to be affected directly. My knowledge
>> > of the API is very low and i was wondering if anyone knew of a way to
>> > do it.
>> >
>> > kind regards.
>> > >
>> >
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---