
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey there, just like the title asks, is possible to delete a modifier from the stack each time the timeline position is changed using a function called with registerTimeCallback? I am using the script below to copy uvs from one object to another and this creates a new UVW Mapping Paste modifier each frame. I would like to be able to clear the previous instances of the modifier at the beginning of each frame as part of the function which does the uv channel operations. I am quite new to Maxscript, the standard deleteModifer command does not seem to be able touch the stack from within the function called by the registerTimeCallback event.
Here is the script so far:
fn UVUpdate = (
deleteModifier $ROADANIM 1 --<--Does Nothing
ChannelInfo.CopyChannel $ROADFREEZE 3 1
ChannelInfo.PasteChannel $ROADANIM 3 1
)
registerTimeCallback UVUpdate
Thanks in advance peeps!
EDIT: I didn't realize that 3Ds does not keep an eye on changes made to a script at save time when that script is actively running in the app, had to hit ctrl+e to get it to update... -_-
Solved! Go to Solution.