>
> I think I solved it with a little ugly hack
>>
>
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;
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/3175bbb8-e350-4b0f-9a28-69d6aa0e4a21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.