ScriptSpot

Forum topic · General Scripting

Can someone please help me with this simple script.

By William_09 · 2016-08-27

Description

Hi guys,

Sorry if this is a noob issue.

Basically i want access to the checker map parameters through maxscript, currently the code is simple like this:

modPanel.addModToSelection (Vol__Select ()) ui:on
$.modifiers[#Vol__Select].level = 1
$.modifiers[#Vol__Select].volume = 4
$.modifiers[#Vol__Select].texture = checker ()
$.modifiers[#Vol__Select].Method = 0

Basically the script applies a volume select modifier plus a checker map on its texture selection slot, on a selected object, It all works for me, I just need to access the checker map parameters and change the uv coordinates plus blur to something like this:

U_Tiling = 0.1
V_Tiling = 0.001
blur = 0.01

i'm hoping someone out there can lend me a hand with this.

Thank you!

Comments (2)

William_09 · 2016-09-03

Thanks much appreciated!

barigazy · 2016-09-01

try like this

if selection.count > 0 do
(
material = Checker name:"CheckerMap"
material.coords.U_Tiling = 0.1
material.coords.V_Tiling = 0.001
material.coords.blur = 0.01
modifier = Vol__Select level:1 volume:4 method:0 texture:material
modPanel.addModToSelection modifier ui:on
)