pFlow – Put Nodes on the Same Layer as the PFlow Source

Ever wanted to have PFlow nodes on the same layer as your PFlow Source object? But you don’t see them in the scene explorer and can’t select them in the viewport.

Well here’s a script that can do it!

—-This script puts all the Pflow events and nodes on the same layer as the PFlow Source Object

fn getPFlowChildren theNode theSource =
thechildren = for o in getpropnames theNode where (getnodebyname o) != undefined collect (getnodebyname o)
for o in theChildren do
theSource.layer.addNode o
getPFlowChildren o theSource

if classof o == Event do
for n in (refs.dependentNodes o) do theSource.layer.addNode n

for o in getclassinstances PF_Source do
theFlow = (refs.dependentnodes o)[1]
getPFlowChildren theFlow theFlow
for theNode in (refs.dependentNodes theFlow) do
theFlow.layer.addNode theNode


About davewortley

Somewhere between an artist and a programmer, I like technical things, but being creative. I love problem solving and coming up with elaborate solutions. This blog is where I shall share ideas, tips, tutorials and anything that amuses me.
This entry was posted in Uncategorized. Bookmark the permalink.

5 Responses to pFlow – Put Nodes on the Same Layer as the PFlow Source

  1. Hello Dave, im just found your blog and looks very interesting, thank you! Regarding this pflow layer thing, I always had this issue and it was a bit of a pain. Working on a big scene with lots of layers and i have a bit of a mess regarding pflownodes. This script is just magic, but I get a syntax error — Syntax error: at ), expected — In line: ) . Any clue? (using max2014, vray3)..


  2. Yes Dave you were right, my bad haha. It works wonderfully thanks mate


  3. Ben says:

    You can do it from particle view.
    Tools –> Synchronize layers


  4. Jonas says:

    Thank you a lot, great script 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s