PDA

View Full Version : Find pflow operator in given PF_Source


JokerMartini
04-16-2012, 11:33 PM
Is there a way to find a specific operator in a given PF_Source.
Say I have three particle systems. Rocks, Leaves, Dirt
Each of those systems have a birth event and a position-Object operator.

Is there any where I can get the position-Object operator by just supplying (for example) "Rocks"
So I can then set the objects in that operator using maxscript.

JokerMartini
04-17-2012, 08:24 PM
The only solution that seems possible is to name those particular events that I need to get and then call them by the name. Which can be funky.....

denisT
04-17-2012, 08:39 PM
Is there a way to find a specific operator in a given PF_Source.
Say I have three particle systems. Rocks, Leaves, Dirt
Each of those systems have a birth event and a position-Object operator.

Is there any where I can get the position-Object operator by just supplying (for example) "Rocks"
So I can then set the objects in that operator using maxscript.

is it what you are looking for:

a = getclassinstances Position_Object target:$Rocks
(refs.dependentnodes a[1] firstonly:on).name

JokerMartini
04-17-2012, 10:23 PM
Awesome!
Thanks Denis
I thought I hit a limitation inside the pf world and I was about to be very disappointed.

CGTalk Moderation
04-17-2012, 10:23 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.