Get Information about wiring of an object

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?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture

mxs reference example wc =

mxs reference example

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's picture

Thank you

Thank you jahman for you qiuick reply. The mxs reference axample helped me alot!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.