getting problem with max script..

getting problem with max script..

Anonymous
Not applicable
1,560 Views
3 Replies
Message 1 of 4

getting problem with max script..

Anonymous
Not applicable
i get this script from a tutorial of fxphd named "FMAX 203 3DMax Destruction Techniques"
instructor created his own script like procutter show to use it i wrote each and every single word exactly what he shows but getting error.. please help me out of it..

select plane then box and hit script..box will cut down in two pieces with the help of script plane will not convert into procutter component and remain normal..so we can change displace value to get different cut next time..which is not available in procutter component..

macroScript HVCutter category: "HVTools"
(
holdMaxFile()
input = selection as array
cutter = copy input
deleteitem input 1
cutter.name = "Cutter"
proCutter.CreateCutter =(cutter) 4 on on off on on
proCutter.AddStocks cutter input 4 1
proCutter.setPlanarEdgeRemoval cutter 2
for i in geometry where (findstring i.name "cutter") != undefined do
(
CenterPivot i
i.wirecolor = random black white
)
delete cutter
)

0 Likes
1,561 Views
3 Replies
Replies (3)
Message 2 of 4

barigazy
Enthusiast
Enthusiast
try now

macroScript HVCutter category: “HVTools”
(
holdMaxFile()
input = selection as array
cutter = copy input
deleteitem input 1
cutter.name = “Cutter”
proCutter.CreateCutter #(cutter) 4 on on off on on
proCutter.AddStocks cutter input 4 1
proCutter.setPlanarEdgeRemoval cutter 2
for i in geometry where (findstring i.name “cutter") != undefined do
(
CenterPivot i
i.wirecolor = random black white
)
delete cutter
)
0 Likes
Message 3 of 4

Anonymous
Not applicable
buy running this script i am getting unknown system expception and getting pink highlight from
") != undefined do
(
CenterPivot i
i.wirecolor = random black white
)
delete cutter
)

i delete my script and re write it this time i don't get any error but the box which i want to cut vanish from the scene by hitting script and used again my script..get same error then i make little change to your script just change your column to " and this time no error put same as with my script...cylinder vanish from the scene..
0 Likes
Message 4 of 4

Anonymous
Not applicable
I had this problem and made a few changes to it and it ended up working for me (max 2012).. try this

macroScript TestCutter category: "HVTools"
(
holdMaxFile()
input = selection as array
cutter = copy input
deleteitem input 1
cutter.name = "Cutter"
ProCutter.CreateCutter #(cutter) 4 true true false true true
ProCutter.AddStocks cutter input 4 1
ProCutter.setPlanarEdgeRemoval cutter 2
for i in geometry where (findstring i.name "Cutter") != undefinded do
(
CenterPivot i
i.wirecolor = random black white
)
delete cutter
)
0 Likes