Hi,
I use the Python access to VRay scene and I try to override the animation of a light.
With vray.utils.appendSceneContent, I include
// Frame at time 2
LightRectangle light1 {
transform=interpolate((1, TransformHex("04AA7F3F00000000D2C651BD000000000000 803F00000000D2C6513D0000000004AA7F3F000000006C9F8E C70C54AE3F091F4AB4E4F1FB3FDE205A2BDADCF5BF")));
}
// Frame at time 3
LightRectangle light1 {
transform=interpolate((2, TransformHex("D8667B3F00000000A43641BE000000000000 803F00000000A436413E00000000D8667B3F00000000B5AED1 72A087CC3F091F4AB4E4F1FB3FDE205A2BDADCF5BF")));
}
to
LightRectangle light1 {
enabled=1;
transform=TransformHex("227603BE00000000B1E17DBF00 0000000000803F00000000B1E17D3F00000000227603BE0000 000000000000942C0440000000C0E4F1FB3F00000060DADCF5 BF");
color=Color(1, 0, 0.901960;
}
but I get
LightRectangle light1 {
enabled=1;
transform=TransformHex("227603BE00000000B1E17DBF00 0000000000803F00000000B1E17D3F00000000227603BE0000 000000000000942C0440000000C0E4F1FB3F00000060DADCF5 BF");
color=Color(1, 0, 0.901960;
}
LightRectangle light1 {
}
// Frame at time 2
LightRectangle light1 {
transform=interpolate(
(1, TransformHex("04AA7F3F00000000D2C651BD000000000000 803F00000000D2C6513D0000000004AA7F3F000000006C9F8E C70C54AE3F091F4AB4E4F1FB3FDE205A2BDADCF5BF"))
);
}
// Frame at time 3
LightRectangle light1 {
transform=interpolate(
(2, TransformHex("D8667B3F00000000A43641BE000000000000 803F00000000A436413E00000000D8667B3F00000000B5AED1 72A087CC3F091F4AB4E4F1FB3FDE205A2BDADCF5BF"))
);
}
Which makes two different LightRectangle, is there a way to merge correctly a scene to another ?
I use the Python access to VRay scene and I try to override the animation of a light.
With vray.utils.appendSceneContent, I include
// Frame at time 2
LightRectangle light1 {
transform=interpolate((1, TransformHex("04AA7F3F00000000D2C651BD000000000000 803F00000000D2C6513D0000000004AA7F3F000000006C9F8E C70C54AE3F091F4AB4E4F1FB3FDE205A2BDADCF5BF")));
}
// Frame at time 3
LightRectangle light1 {
transform=interpolate((2, TransformHex("D8667B3F00000000A43641BE000000000000 803F00000000A436413E00000000D8667B3F00000000B5AED1 72A087CC3F091F4AB4E4F1FB3FDE205A2BDADCF5BF")));
}
to
LightRectangle light1 {
enabled=1;
transform=TransformHex("227603BE00000000B1E17DBF00 0000000000803F00000000B1E17D3F00000000227603BE0000 000000000000942C0440000000C0E4F1FB3F00000060DADCF5 BF");
color=Color(1, 0, 0.901960;
}
but I get
LightRectangle light1 {
enabled=1;
transform=TransformHex("227603BE00000000B1E17DBF00 0000000000803F00000000B1E17D3F00000000227603BE0000 000000000000942C0440000000C0E4F1FB3F00000060DADCF5 BF");
color=Color(1, 0, 0.901960;
}
LightRectangle light1 {
}
// Frame at time 2
LightRectangle light1 {
transform=interpolate(
(1, TransformHex("04AA7F3F00000000D2C651BD000000000000 803F00000000D2C6513D0000000004AA7F3F000000006C9F8E C70C54AE3F091F4AB4E4F1FB3FDE205A2BDADCF5BF"))
);
}
// Frame at time 3
LightRectangle light1 {
transform=interpolate(
(2, TransformHex("D8667B3F00000000A43641BE000000000000 803F00000000A436413E00000000D8667B3F00000000B5AED1 72A087CC3F091F4AB4E4F1FB3FDE205A2BDADCF5BF"))
);
}
Which makes two different LightRectangle, is there a way to merge correctly a scene to another ?
Comment