Selecting the node Id

31 views
Skip to first unread message

Rudi Hammad

unread,
Jun 10, 2017, 5:57:33 AM6/10/17
to Python Programming for Autodesk Maya
Hi,
according to the documentation, to register node id we have to use the numeric range 0 - 0x7ffff
(I am not releasing this in a studio, it is for personal use, so I am not asking autodesk to provide me a unique id)

My first question is:
Should I start with 0x00001 and keep increasing by one?

My second question is:
If so, when I have between 100 and 150 plugins, but I am not sure exactly the number, how can can make sure that I am not overriding a previous id?
how would a name and keep track of my nodes.

thank you

R

Justin Israel

unread,
Jun 10, 2017, 7:14:16 AM6/10/17
to Python Programming for Autodesk Maya
There may be better ways now adays in the Autodesk world, but at the very least could you just version control a node registry file where you track the numbers you are using? You would have to keep track of the ids regardless of whether you have an official block of ids or not. 

If you aren't getting an official block of ids from Autodesk then I would think it shouldn't matter where you start in that range because you are just as likely to conflict with any value. 


thank you

R

--
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/bdaabe53-e43e-4446-bdf1-87968fc0b1c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages