About Me

Saturday, December 31, 2011

Maya Audio Offset in 2012

 In a previous post I mentioned that since Maya2011 they'd changed the way the offset attribute on sound nodes worked:

"So, 2 sets of attrs work together. Offset and EndFrame, SourceStart and SourceEnd. The Offset is no longer what it used to be, this is the start of the clip nothing more. If like us you have tons of sound code designed to offset audio then it's all stuffed! you need to manage both Offset and EndFrame at the same time now in order to shift a sound node along time."

I'd just like to to point out that this looks to have been reverted back to the previous behaviour inb the latest 2012 builds where the offset attribute controls the clip offset as you'd always have expected it to do.


Friday, December 16, 2011

Bug: Duplicate Nodes with Message Links

This is a bug that we had quashed back in 2009 but we've just noticed that it reappeared in 2011 when we were debugging some really unstable animation scenes. Basically you have 2 nodes in Maya with array message links, you duplicate one node and that then generates an exponential amount of message links between the 2 original nodes. In the example below you end up with something close to 100 message links between the 2 original Cube and Cone....EEEEk! 

import pymel.core as pCore

Cone.addAttr('SampleSpace', at='message', m=True, im=False)
Cube.addAttr('SampleSpace', at='message', m=True, im=False)
pCore.connectAttr(Cone.SampleSpace,Cube.SampleSpace, na=True)

for n in range(10):