vray automator for displacement modifier...

would be great.

i have hundreds of roofs with displaced tiles, grouped within groups, and they all need the shift adjusting… they arent instanced modifiers :cry:

somone happen to have one lying round?

Paste this into a blank maxscript file and go file > evaluate

rollout displacecontrols "Displacement controls"
(

Spinner shift "Shift value" width:200 align:#right
Spinner amount "Amount value" width:200 align:#right
button applyIt "Apply changes" width:200 align:#right

	on applyIt pressed do
	(

		try 
		(
			for i = 1 to selection.count do
			(
				selection[i].modifiers[#VRayDisplacementMod].shift = shift.value
				selection[i].modifiers[#VRayDisplacementMod].amount = amount.value
			)
		) catch()

	)

)

createdialog displacecontrols  width:300

ahh what a champion! ill give it a go now :lol:

hmm… ive opened all groups, and isolated just the objects with dispacement on, then run the script… but it doesnt seem to be updating the changes if i have more than 1 selected…

Hmm it worked for me but that said I didn’t use groups. Have you renamed any of the displace modifiers?

naa..

im thinking now, that since all the modifiers are essentially the same but not instanced, i may just collapse all the roofs to one mesh and put 1 modifier on the whole lot…

thanks a load for your help though…