[Closed] Snapshot Script Question
Hi there.
I have this short command for doing my snapshots:
for t in 0 to 100 do at time t snapshot $
But this is doing something slightly different than doing it manually by hand.
Pressing every Frame Tools->Snapshot(Single;Mesh)
Worldspace<->Objectspace?
Does somebody know what could be the difference there?
Hi
I think this way will work!
for o = 1 to 100 do
(
slidertime = o
snapshot $Object
)
Don´t forget to change the $Object to the name of the object you´re using.
See Ya
It’s not working.
for o = 1 to 100 do
(
slidertime = o
snapshot arms
)
– Error occurred in o loop
– Frame:
– o: 1
– arms: undefined
– No ““snapShot”” function for undefined
What about a multiple selection?
Other than in MEL where $ denotes a user variable, in MAXScript $ denotes a scene object path. $ alone can be used as replacement for a single object or the current selection (multiple objects) – it morphs its content based on whether one or more objects are selected. So your original code should have worked (plus the sliderTime option).
Depending on what you are doing, you can alternatively use
at time o …
which sets the INTERNAL time context of MAXScript to the given time, but it does not guarantee that the state of the object will be updated correctly, so setting the scene time via the SliderTime is a better way to force an updated mesh. If you were reading the position of an object though, at time o ( $.pos ) would work and would be orders of magnitude faster as it does not have to redraw the viewports…
If the name of your object is “arms” then you need to say:
snapshot $arms