Sorry you're looking for actual fcurve copy?
Maybe you could try copying the fcurve directly via the object model, like
oTargetParameter.addfcurve2( oSourceParameter.source.keys )
or something along these lines.
Bernard
On 5/30/07, Bernard Lebel <3dbernard(at)gmail.com> wrote:
I'd run through the origin parameters and copy their values on the
target parameters, instead of making a direct copy of the property.
This should work.
For Each oSourceParam in oSourceProperty.parameters
oTargetProperty.parameters( oSourceParam.scriptname ).value =
oSourceParam.value
Next
Not sure about the exactitude of the VB syntax though.
Cheers
Bernard
On 5/30/07, Adam Seeley <adam.seeley(at)clearpost.co.uk> wrote:
> 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
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi