global proc mfVoxelizer_DynAttrs_New(string $plug)
{
}
global proc mfVoxelizer_DynAttrs_Replace(string $plug)
{
// THIS DOES NOT WORK WHEN PLACED IN THIS PROCEDURE
/*
string $temp[];
tokenize $plug "." $temp;
string $node = $temp[0];
string $se_attrs[] = get_se_attrs($node);
for($attr in $se_attrs)
{
print "!!!!!!!!! "; print $attr; endl;
editorTemplate -addDynamicControl $attr;
}
*/
// ugly hack
evalDeferred -lp "refreshEditorTemplates"; // no evalDeferred causes CRASH
}
editorTemplate -beginLayout "Dynamic Attributes" -collapse 0;
string $se_attrs[] = get_se_attrs($nodeName);
for($attr in $se_attrs)
editorTemplate -addDynamicControl $attr; // can't put this into mfVoxelizer_DynAttrs_Replace
editorTemplate -callCustom "mfVoxelizer_DynAttrs_New" "mfVoxelizer_DynAttrs_Replace" "";
editorTemplate -endLayout;