Get information on any groups an object is in

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  07 July 2013
Get information on any groups an object is in

Hi, I have one part of a code which goes back a frame, gets the location of the object, then subtracts this from the original location to get the velocity

I just tried grouping the objects, and I realised moving the group didn't affect the actual object. Is there a way where I'd also be able to include the location of the group (eg. object at 10,0,0 and the group moved to -20,0,0 would give a result of -10,0,0), or get the absolute position of the object?

  07 July 2013
Look at the doc, when querying the position there's a flag for relative/object space position and there's a flag for world position.
  07 July 2013
If your animated objects are driven by keyframes or expressions there is perhaps a better way to get something like velocity if you use the "getAttr" command and modify it with "-time <value>". Otherwise you could produce weird results if your scene contains uncached particles for example.
  07 July 2013
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:37 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.