Getting String value from ReferencePanel

Getting String value from ReferencePanel

Anonymous
Not applicable
386 Views
2 Replies
Message 1 of 3

Getting String value from ReferencePanel

Anonymous
Not applicable
Hi all,
I'm trying to write a script to duplicate reference from selected file from Reference Panel.
ls -sl doesn't work in this case as the selection is not of maya object.
I tried doing it manually and check on the "echo commands". It's written :
duplicateReference 1 $gReferenceEditorPanel

After further checks, I believe duplicateReference is a procedure written inside the Reference Panel
as it becomes an invalid command once the editor is closed. But I can't seem to find the MEL of it.

$gReferenceEditorPanel is a string that contains the file(s) selected inside the Panel.
Is there a way for me to find out what's the command inside the string?

I'm not sure I've explained myself well, but any help is greatly welcomed.

Thanks alot.
0 Likes
387 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Use whatIs to find where the procedure is located on your system.....
whatIs  duplicateReference;
// Result: Script found in: C:/Maya2009/scripts/others/duplicateReference.mel //
0 Likes
Message 3 of 3

Anonymous
Not applicable
That really helps thanks alot. :lol:
0 Likes