ScriptSpot

Forum topic · General Scripting

Access Box#2 Modifiers Via Script

By Anxo · 2013-02-13

Description

Hey guys, If I wish to ad a point cache modifire I can just type

addModifire $ Point_Cache

or

addModifire $ (Point_Cache())

but when I try to add a box2 particle skinner

addModifire $ Particle_Skinner

it is undefined. If I ad the skinner Manually, I get.

modPanel.addModToSelection (Particle_Skinner ()) ui:on

in the listiner, but if I copy and paste it I get.

-- Runtime error: Not creatable: Particle_Skinner

What is happening here? Can maxscript not read the class? Do I have to ad some kind of library somewhere?

Comments (2)

barigazy · 2013-02-13

obviously can not be created with mxs, but not sure.
Anyway correct way will be

addModifire $ (Particle_Skinner())
--or
ps = Particle_Skinner()
addModifire $ ps

Anxo · 2013-02-13

Yes, I just had a friend take a look and the script works fine on his machine. Turns out I must have a bad install.