What exactly is the "filenames" attribute in a reference node

29 views
Skip to first unread message

Javier

unread,
Jun 27, 2023, 7:22:52 PM6/27/23
to Python Programming for Autodesk Maya
Hello all,

Maybe this is a niche question but I have recently noticed that there is a "filenames" -"fn" for short name- array attribute in reference nodes, and it can be set as in "myReferencenodeRN.fn[0]", "myReferencenodeRN.fn[1]", etc.
What confuses me the most is that this attribute is not the same as the "filename" attribute (which is not an array of strings but just a string, and it is not really an attribute because it is not listed as with maya.cmds.listAttr).
Do you guys have any clue what is this used for? My guess is that it may be used just for hinting previously used filenames or something like that?
In this regard, do you guys know whether there is anywhere some documentation about what each attribute does? Like a description or something similar, I guess there is not, but maybe a Python's built-in help() style utility or something?
 
Thanks in advance,
 
Kind regards,

Justin Israel

unread,
Jun 27, 2023, 7:27:00 PM6/27/23
to python_in...@googlegroups.com

It does describe both the long (fileNames) and short (fn) attributes as being a list
 
Thanks in advance,
 
Kind regards,

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/55e4d720-1dd9-4a1b-8829-d1132915f3f6n%40googlegroups.com.

Javier

unread,
Jun 28, 2023, 1:19:34 AM6/28/23
to python_in...@googlegroups.com
That is exactly what I was looking for! I didn't even know this reference even existed!

Thanks a lot Justin!

Reply all
Reply to author
Forward
0 new messages