Hallo, I hope somebody can help me with my question!
I want to know, is it possible with a script to find out if an object has wire connections to some other object and if it has then which object(s) exactly is it and which (I’m speaking from wiring transformations and not any other parameters) controllers (Pos/Rot/Scale - X/Y/Z) have this connections?
Forum topic · General Scripting
Get Information about wiring of an object
By Mix · 2018-11-13
Description
Comments (2)
jahman · 2018-11-15
wc = $.rotation.controller.z_rotation.controller -- get pos X controller
if classOf wc == Float_Wire do
(-- list out its connections
for i in 1 to wc.numWires do
(
parent = wc.getWireParent i
parentNode = refs.dependentNodes parent
parent_owner = (refs.dependents parent)[1]
param_name = getSubAnimName parent (wc.getWireSubnum i)
format "wire %: % in % %\n" i param_name parent_owner parentNode
)
)
Mix · 2018-11-22
Thank you jahman for you qiuick reply. The mxs reference axample helped me alot!