Wire paramenters multiple objects at once

osukas
Advocate
Advocate

Wire paramenters multiple objects at once

osukas
Advocate
Advocate

Im Using Wire Parameters to use the value of one mesh, to control the same property of othe 50 meshes.

 

I have been conecting these manually one by one, but has to be a better solution to do it with a lot of objects at the same time.

0 Likes
Reply
293 Views
1 Reply
Reply (1)

leeminardi
Mentor
Mentor

You can use a script something like the following.

 

(
	m = $MasterObject -- object that will drive the other objects
	obj = selection
	for o in obj do   
	(
macros.run "Parameter Wire" "paramWire"
paramWire.connect m.transform.controller[#Scale] o.transform.controller[#Scale] "Scale*3" as string

	)
)

 

In this example the scale of an object named "MasterObject" will drive the scale of other objects so that they are 3 times larger than MasterObject.  Note the need for AS STRING at the end of the wire.connect statement.

To use the script select all objects to be wired but not MasterObject and then execute.

 

lee.minardi