Change Lathe modifer direction/ alignment via Max Script

Change Lathe modifer direction/ alignment via Max Script

info82NDX
Explorer Explorer
527 Views
1 Reply
Message 1 of 2

Change Lathe modifer direction/ alignment via Max Script

info82NDX
Explorer
Explorer

Hi, 

 

I am trying to change a Lathe modifier direction via Max script: 

 

select $MySpline
modPanel.addModToSelection (Lathe ()) ui:on
$MySpline.modifiers[#Lathe].axis = 2

 

However I am getting this error 

 

-- Error occurred in anonymous codeblock; filename: ; position: 444; line: 16
-- Unable to convert: 2 to type: Matrix
-- MAXScript callstack:
-- thread data: threadID:7852
-- ------------------------------------------------------
-- [stack level: 0]
-- In top-level

 

Any help would be great

 

 

0 Likes
Accepted solutions (1)
528 Views
1 Reply
Reply (1)
Message 2 of 2

info82NDX
Explorer
Explorer
Accepted solution

solved my own problem, I needed to use a matrix, here's the correct format for anyone looking: 

$MySpline.modifiers[#Lathe].axis = matrix3 1

0 Likes