Inverting a Sequence
(Originally posted by elporti on 8/30/2006)
Dear all,
I have 2 sequences and I want to merge the second one into the first one but in an inversed running way (to reconstruct an entire object). Can someone help me in doing so?
0
Comments
-
(Originally posted by Chris Tully on 8/30/2006)
Here is a short macro that will reverse a sequence. From there it is a simple menu choice to append the reversed sequence to an other sequence.
Sub ReverseSeq() Dim DocId As Integer Dim NewId As Integer Dim nFrames As Integer Dim i As Integer Dim DummyPt As POINTAPI Dim SeqApplyState As Integer DocId = IpDocClick("Please click on the sequence to reverse", DummyPt) If DocId < 0 Then ret = IpMacroStop("You must select a sequence of at least two frames for this macro to function.", MS_MODAL) Exit Sub End If ret = IpSeqGet(SEQGET_NUMFRAMES, nFrames) If nFrames <= 1 Then ret = IpMacroStop("You must select a sequence of at least two frames for this macro to function.", MS_MODAL) Exit Sub End If ret = IpSeqGet(SEQGET_APPLY, SeqApplyState) ret = IpSeqSet(SEQ_APPLY, 1) ret = IpAppSelectDoc(DocId) ret = IpSeqPlay(0) ret = IpWsCopyFrames(0, 1) NewId = IpWsCreateFromClipboard() For i = 1 To nFrames - 1 ret = IpAppSelectDoc(DocId) ret = IpSeqPlay(i) ret = IpWsCopyFrames(i, 1) ret = IpAppSelectDoc(NewId) ret = IpWsPasteFrames(0) Next i ret = IpSeqSet(SEQ_APPLY, SeqApplyState) End Sub
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions