Message 1 of 1
Using Python with Modifiers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How can I trigger the PointCache modifier to 'Record' and once it's done recording, delete the modifier from the object?
I can't seem to find anywhere in the documentation on how to initialize the 'Recording' process of the modifier.
snippet = " import MaxPlus import os selection = MaxPlus.SelectionManager.GetNodes() for node in selection: filepath = \"C:\\Users\\jmartini\\Desktop\\Trash\\johntest.pc2\" mod = MaxPlus.Factory.CreateWorldSpaceModifier(MaxPlus.ClassIds.Point_CacheSpacewarpModifier) mod.ParameterBlock.Filename.Value = filepath node.AddModifier(mod) print dir(mod) print vars(mod) " clearlistener() python.execute snippet