Can someone please help me with this simple script.

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
William_09's picture

Thanks much appreciated!

Thanks much appreciated!

barigazy's picture

...

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
)

bga

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.