Announcement

Collapse
No announcement yet.

Mel advice: VRMesh node attached to transform

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mel advice: VRMesh node attached to transform

    Hello, an incredibly beginner question, but brain overloaded today... Can anyone advise me on how to detect whether a VRMesh node is connected to a transform (or shape) ? listRelatives etc .. anything.
    Basically, trying to get an array of VRMesh node names from selected objects.

  • #2
    Hi,

    Code:
    string $tramsforms[] = `ls -sl -type "transform"`;
    for ($myTrans in $tramsforms)
    {
        string $shape[] = `listRelatives -s $myTrans`;
        string $vrmesh[] = `listConnections -destination 0 -source 1 $shape[0]`;
        print $vrmesh[0];
    }
    www.deex.info

    Comment


    • #3
      Oh good grief, how embarrassing

      Code:
      listConnections -destination 0 -source 1
      ..is exactly what I'd been trying, but on the Transform rather than traversing to the Shape. Schoolboy error indeed.

      many, many thanks for coming to the rescue David.. You're my new hero.
      Actually, you have been for a while, and I must say your write up on why you'd not posted MentalRay advice on your blog for a while was one of the deciding factors for going over to VRay when I did. I'm flattered for the help, so thank you twice!.


      /RicoHolmes

      Comment

      Working...
      X