Announcement

Collapse
No announcement yet.

vray automator for displacement modifier...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

    somone happen to have one lying round?

  • #2
    Paste this into a blank maxscript file and go file > evaluate

    Code:
    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

    Comment


    • #3
      ahh what a champion! ill give it a go now

      Comment


      • #4
        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...

        Comment


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

          Comment


          • #6
            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...

            Comment

            Working...
            X