Notifications
Clear all

[Closed] Get node name via getclassinstances?

Hi,
I want to get entire scene nodes name if include some types of controller such as position_list?For example,there are 3 nodes A B C,B includes position_list,how do I get B’s name?

getclassinstances position_list    --output:    #(Controller:Position_List)   
--here get the name if the controller is Position_List

Thanks in advance!

2 Replies

I guess you know that controller may be shared among several nodes.


for controller in getClassInstances position_list do
(
    for node in refs.dependentNodes controller do format "%
" node.Name
    
)
1 Reply
(@momo2012)
Joined: 11 months ago

Posts: 0

This is exactly what I am looking for,thanks for great help!!