Hi.
I no doubt know this is a easy fix but and help would be most apreciated.
I can apply and randomise a UVW map easily enough but I'm having trouble counting the objects selected and looping through the script for each object.
The general idea is to say randomise a stone texture over several tiles.
My poor ass script is as follows :
arr = $.count
mapSize = 500
for i = 1 to arr do
(
modPanel.addModToSelection (Uvwmap ()) ui:off
$.modifiers[#UVWMapping].maptype = 4
$.modifiers[#UVWMapping].length = mapSize
$.modifiers[#UVWMapping].width = mapSize
$.modifiers[#UVWMapping].height = mapSize
$.modifiers[#UVWMapping].gizmo.rotation = (quat (random -20 20) (random -20 20) (random -20 20) (random -20 20))
maxOps.CollapseNode $ off
)
Any Help would be most apreciated.
Anubis · 2011-10-07