W dniu 2015-04-17 o 14:33, Marcus
Ottosson pisze:
I get what you’re after,
and I don’t have an answer for you, but this..
playback can be slow
in lighting scenes
..can be solve
I get what you’re after, and I don’t have an answer for you, but this..
playback can be slow in lighting scenes
..can be solved by either isolating the item or disabling viewport refresh
before playing.
In case of heavy constraints, it’ll still be slow, but in those cases there
might not be any
Thanks again !
But your code has fundamental flaw - it works only if there's
exactly one key.
What if there are keys for every frame? And these keys have the
same values - ergo camera is fixed in space ?
"Delete Static Channels" detects this. Of course I can
Test this on single and multiple static channels. it work on camera and its
shape’s keys of attributes:
from maya import cmds
def detect_static_channel():
sels = cmds.ls(sl=True)
objs = []
for each in sels:
obj_shape = cmds.ls(shapes=True)[0]
objs.append(each)
o
i reach to good result for this
but this mel code create a camera that all keyable attributes have key,
also some attributes like Focal Length, F Stop and others have key too.
do you want the code apply on keyable attrs or all?
On Fri, Apr 17, 2015 at 3:56 AM, f.michal wrote:
> As trivial as th
As trivial as that MEL:
camera;
// Result: camera1 //
bakeResults -simulation true -t "1:24" -sampleBy 1
-disableImplicitControl true -preserveOutsideKeys true
-sparseAnimCurveBake false -removeBakedAttributeFromLayer false
-removeBakedAnimFrom
can you share a simple scene that have the problem?
On Fri, Apr 17, 2015 at 3:13 AM, f.michal wrote:
> Thanks !
> But static channals are also those who have many keys all with the same
> values - which is my case.
> Bigger picture: I'm trying to determine if camera moves or not in a shot.
> If
Thanks !
But static channals are also those who have many keys all with the
same values - which is my case.
Bigger picture: I'm trying to determine if camera moves or not in
a shot.
If it's static there's a potential advantage in render frame range
on
Hello
Static Channels are related to when you set a single keyframe on an object
when you want to delete it you can do it with the menu you want.but if you
want to detect a static channel on an animation curve of an object you can
use this code:
from maya import cmds
sels = cmds.ls(sl=True)
keyCo
Hello
Maya has an option to delete static curves from transfrormation channels
(edit > delete by type > static channels).
Is there any method to check if they're static without deleting anything ?
--
You received this message because you are subscribed to the Google Groups
"Python Programming
10 matches
Mail list logo