//templateSeqFile - stores the template sequence file that I'm cloning from
//templateActionSeq - the "Action" sub-sequence within the template file (the sequecence I want to clone)
//newActionSeq - the newly cloned "Action" sequence
//newSeqFile - my new sequence file that I'm creating.
//get "Action" sequence from template file
TS_SeqFileGetSequenceByName(templateSeqFile,NULL,"Action",&templateActionSeq);
//clone the "Action" sequence and store it in newActionSeq
TS_PropertyClone(templateActionSeq,NULL,"",0,&newActionSeq);
//RENAME THE SUB SEQUENCE????
char *newName = "FRED1"; TS_PropertySetProperty(newActionSeq, &errorInfo, TS_PropertyName,
CAVT_CSTRING, newName); ...
CA_FreeMemory(n
ewName);//insert new action sequence
TS_SeqFileInsertSequence(newSeqFile,NULL,newActionSeq);
Don't forget to release the sequence handles you've gained once you're finished with them. (CA_DiscardObject I think - depends how you defined them.)
I'll leave it to you to work out how you're going to change the name, but since you now know how to do the SequenceFile.SequenceExists check, that shouldn't be a problem.
Hope this helps
Sash.
// it takes almost no time to rate an answer