Notifications
Clear all
[Closed] Maya <-> Maxscript: ListRelatives/Connections
Jan 12, 2016 8:53 am
In Maya I can either use ListRelatives or ListConnections if I for example want to find out if an object is connected to another one in any way. Is there something similar I can use in maxscript? I haven’t had any luck with the maxscript reference
2 Replies
Jan 12, 2016 8:53 am
I’ve not got max in front of me but I think refs.DependentNodes is what you’re after.
Jan 12, 2016 8:53 am
Depends on what “connection” means.
Generally you don’t need to find “connections” to find many things in MXS.
For example, if you want to know what material the object has, you just need to do.
obj.material
If you want to know parent of the object
obj.parent