Getattr | Xform " -ws Attribute With Time"

Hi guys,

Iam stuck at a little thing... I know that we can get an attribute's value at a perticular time by using "getAttr -t".

But i wanna know an object attribute's value in "object space" at a "given time/frame" without moving the timeline slider by looping through it.

Is there a way to do this??

Please help guys...any response will be appreciated.

Thanks a lot,
Amit.

what value to be specific. I mean all attibutes are stored in local cordinates at all times.

Hi there,

well i wanna querry "rotation" of a camera in object space. But when I have an animated camera and I then querry its rotation values, I get whats there in the chanell box. are those values in object space?

If you have any clue about it, let me know.

Thanks a lot,
Amit

yes!

Hi there,

Iam stuck again at the same thing... Joojaa told me that all the values are stores in object space.

But now i wanna querry an objects value in WORLD SPACE.

eg:

I have a locator parented under a Camera. Now camera is animated so follows the locator.
I would like to querry the locators poition in World space, Without moving the timeline playhead.

like in "getAttr -q -t ...." but there is nothign like "getAttr -q -t -ws "locator""...

Any ideas??

Thanks a lot to all who have helped me and will...

Amit.

float $world_space[] = xform -q -ws -t $object;

Hi Robe,

isnt "-t" flag in command "xform -q -ws -t $object" stants for transformatins??

but inn getAttr -t stants for time so using getAttr i can get values at given time/frame. but then in getAttr i cant get values in World Space...

So any suggestion?
Still stuck,

Thanks a lot,
Amit

-ro for rotation, -t for translation. But xform will do everything you are wanting....

Rob no he cant just do this because xform only querriuies this perticular frame not at any arbitrary toiime like getattr does.

Well calculate it yourself, querry the inverse world matrix too and point multiply theese two things togetehr!

Hi,

Thanks Joojaa. Ill try matrix multiplication...i guess it will take me sometime as i have never tried this before..so lets see where i reach with this. If you can guide a bit about this...how to start ot anything that will be great.

Thanks a lot again,
Amit