PDA

View Full Version : rename pfx-brush + stroke


borisb2
07-07-2007, 02:35 PM
Folks,

Im 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 Im doing more or less renaming by hand through a "select "brush*"" command and a for-loop, which doesnt 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?

many thanks,
Boris

CGTalk Moderation
07-07-2007, 02:35 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.