I´m setting up a melscript that creates several (randomly positioned) curves and attachs a saved pfx-brush to each curve.
Creating the curves and attaching the brushes is of course no problem. The problem is in the renaming (for later purpose) of the brushes. When attaching a brush the stroke gets selected (which I directly rename). But how do I get to the connected brush through mel ?
Right now I´m doing more or less renaming by hand through a "select "brush*"" command and a for-loop, which doesn´t always ensure that the connected stroke and brush gets the same number.
In other words: when a stroke is selected, can I directly select the connected brush with mel? Is there a command to travel down the node-chain or something similar?