Page 1 of 1

Animation layers not work [SOLVED]

Posted: Tue Oct 04, 2016 6:35 am
by Kuzbasscot
Sorry for my bad English.
Dear Sirs,
We are the customers of your company. Unfortunately we have faced the problem with Octane for Maya. When we add the controllers into the Animation layer the following command is run:

select -r Character1_Ctrl_HipsEffector ;
animLayer -e -addSelectedObjects AnimLayer1;
// Adding the following Keying Group to the layer: Character1_FullBodyKG //
// The rotation accumulation mode was converted to by_Layer. //

1.tif
1.tif (606.94 KiB) Viewed 5390 times
It works correctly, the selected controller has been added to the chosen Animation layer.
When starting your Plugin, this procedure doesn’t work. The selected controller couldn’t be added to the layer, and the following message appears:

animLayer -e -addSelectedObjects AnimLayer1;
// Adding the following Keying Group to the layer: Character1_FullBodyKG //
// Error: line 0: Connection not made: 'Character1_Ctrl_HipsEffector.octMaterialR' -> 'AnimLayer1.dagSetMembers[-1]'. Source attribute must be readable. //

2.tif
2.tif (1.23 MiB) Viewed 5390 times
That is why we have no possibility to add new Animation Layer to the base Mocap animation, it makes our work difficult. We have tested Maya 2016, 2016.5 and 2017. We have used different versions of Octane 2.24.2 -7.24, 2.24.2 -7.14, 3.03.2 - 8.02(Windows version). Every time we did it, we were facing the described problem.
It would be helpful if you could solve this problem.

Re: Animation layers not work

Posted: Tue Oct 04, 2016 9:09 am
by calus
Oh yes, this bug is really annoying !

This comes from the HairShader attribute,
this was really a bad idea to add this attributes to all transforms in maya instead of only to pfx nodes :(
and on top of that Jimstar forgot to set the attribute non-keyable so it triggers all kind of problem with Maya animation, even if you don't use Octane...

As a workaround you can use this mel script :

Code: Select all

// Delete all animation nodes connected to the octane hairMaterial attribute of selected transforms and make the attribute none keyable.
// If no transform is selected, all transforms in the scene are processed.

{
	string $tranforms[]=`ls -sl -typ transform`;
	if (size($tranforms)<1) $tranforms=`ls-typ transform`;
	for ($tranform in $tranforms) {
		delete -inputConnectionsAndNodes ($tranform+".octMaterialR");
		delete -inputConnectionsAndNodes ($tranform+".octMaterialG");
		delete -inputConnectionsAndNodes ($tranform+".octMaterialB");
		setAttr -keyable off ($tranform+".octMaterialR");
		setAttr -keyable off ($tranform+".octMaterialG");
		setAttr -keyable off ($tranform+".octMaterialB");
		print ($tranform+" is treated\r");
	}
}
be aware that for each new transform created in the scene the hairMaterial attribute is keyable so you have to apply the script again.

Re: Animation layers not work

Posted: Wed Nov 16, 2016 8:05 am
by calus
Issue solved in release 2.26.1 - 7.20.4


For scene created with previous version you still have to delete extra keys and make these attributes non keyable by hand, or use my script posted in this Topic.