Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (
- fn GetUvwMap objs =
- (
- local result = #()
- join result (getclassinstances Uvwmap target:obj)
- result
- )
- mapped fn TransformUvwMap uvmod tm =
- (
- uvmod.gizmo.transform *= tm
- )
- mapped fn RandomizeUvwMap obj range =
- (
- if not isvalidnode obj do return undefined
- local mod_arr = getclassinstances Uvwmap target:obj
- local random_p3 = random (-range) range
- local random_tm = transmatrix random_p3
- TransformUvwMap mod_arr random_tm
- )
- /* change +- range here */
- range = [10,10,0]
- RandomizeUvwMap selection range
- )
Advertisement
Add Comment
Please, Sign In to add comment