Scripting : Copying Animation from Referenced Models

Date : Wed, 30 May 2007 19:04:46 +0100
To : <XSI(at)Softimage.COM>
From : "Adam Seeley" <adam.seeley(at)clearpost.co.uk>
Subject : Scripting : Copying Animation from Referenced Models
Hi,

I have a script to copy the Visibility property with it's animation from a Group to a Partition.

I did this in a fairly crude but effective way. i.e. if the Group has a Visibility Property, then select the Property, Copy it, then select the Partition and Paste it.
This effectively generates the Visibility Property and Copies the Animation (fcurve/expression etc.) in one fell swoop.


if localprop.type = "visibility" then
	logmessage "HAS VISIBILITY"
	Selectobj localprop 
	Copy
	Selectobj oPartition
	Paste
Else blah blah blah.

Now I need to copy the Visibility Property from a Referenced Model. Copying from a ref. Model is not allowed though.
I could understand not being able to Paste, but not being able to Copy *from* a ref. Model is a bit mean!

Does anyone have tips about how best to read the Animation from a Ref. Model/Property & copy the information to another place?

It's not the same as a value where you can say  this.viewvis.value = that.viewvis.value  and I don't seem to be able to Copy info from the Ref model.


Many thanks,

Adam.


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.3/824 - Release Date: 29/05/2007 13:01
 

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.