View Full Version : PFS Event in ms
holycause 08-14-2008, 04:21 PM i was wondering how i could access to all the events of a PFS.
If i use this;
for o in helpers do if classof o == event do append PFSEvent o
i will get all the events in my PFview. and if there's more than 1 PFS, i will have some events i don't want to have.
|
|
ZeBoxx2
08-15-2008, 01:00 AM
eh... I'm no PFLow guru, so I'm sure there's better ways (preferably so you can get an entire hierarchy in order), but...
myEvents = for p in (getPropNames $PF_Source_01) where ((classOf (propValue = getProperty $PF_Source_01 p)) == Event) collect ( (refs.dependentNodes propValue immediateOnly:true)[1] )
basically it...
- loops over all property names of $PF_Source_01
- gets the value for that property
- if that value is of class event
-- collects the nodes that immediately depend on that event
- returns the array of events associated with that PF Source.
By (my) morning you'll have a cleaner method from somebody who knows what they're doing with PFlow :)
holycause
08-15-2008, 02:42 PM
thx Richar, I will try with this :D
CGTalk Moderation
08-15-2008, 02:42 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.