PDA

View Full Version : refreshing viewport


tomViolet
04-07-2005, 02:10 PM
hello,

is there a way to query the positin/rotation of an object at a given frame
without refreshing the viewports? the object i want to query is cached so I can't
query it's keys. I have a script which plays through the timeline and collects
some data (ie the position change between frames) but it takes forever. Especially when i
forget to turn off the image planes. I've tried to use "currentTime -update 0" but it
doesn't seem evaluate any nodes. Any suggestions would be appreciated.

thanx,
tomViolet

tsdorsey
04-08-2005, 09:46 AM
You can use the getAttr command. It has the ability to get attribute values at a specified time.

getAttr -time 314 object.attribute;

float $whatever = `getAttr -time 314 object.attribute`;

Hope this helps,
Trevor

CGTalk Moderation
04-08-2005, 09:46 AM
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.