Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Passing Group XForms to members?
  RSS 2.0 ATOM  

Passing Group XForms to members?
Rate this thread
 
55193
 
Permlink of this thread  
avatar
  • Total Posts: 10
  • Joined: 03 October 2008 12:38 PM

I’m currently trying to find a way of passing the world-space transformations of a group node to its constituent members, without actually changing their positions relative to the group transform.

Reason being, I have a distance-based search algorithm looking for curves in a scene. Since it checks the WS positions of each individual curve, it needs to be able to read their absolute WS position. I’ve tried reading the Xform using the cmds.xform() command with absolute, and world-space set to true, with no luck.

The procedure works absolutely fine if the curves are un-grouped and simply transformed around the scene, it only falls over if they’re grouped.

Any suggestions?



Replies: 0
avatar
  • THNKR
  • Posted: 30 April 2011 11:10 AM

Ungroup the curves then query their world-space position, then restore the parent child relationship. It’s odd that xform doesn’t work, I use it often.



Replies: 1
/img/forum/dark/default_avatar.png

It does seem odd that it can’t get the absolute WS positions from Xform, but unless I’m overlooking something in my command (cmds.xform(’traffikSection1_L1’, t=True, a=True, ws=True, q=True)) it doesn’t work…

The only issue with using the group-ungroup method is the fact that all these checks are being done during playback.

Author: Tom Rowell

Replied: 30 April 2011 11:26 AM  
avatar

Disregard my request. I’ve had to sacrifice my scene management in order to work around this problem. Its a small price to pay, just would rather have been able to avoid it!



Replies: 0