Sorry Clinton,
I have not been testing the compatibility with YafaRaytS and Vray recently.
I have posted what I have found earlier.
I have been working on the Render to File and YafaRay4tS Animation aspect.
I have found a few issues with the Set Timeline Range and the Render Animation button on the Render to File panel.
Here is what I have come up with for the button scripts, the scripts have comments.
You can try these scripts without putting them in the buttons.
Set Timeline Range button(S)
Code: Select all
// Render to File - Set Timeline Range button
// Need to update the YafaRay4tS - Set Timeline Range button too!!!
function Execute(params)
{
// Reset attributes
Node.ConReset(Space.CurrentScene() + "/YafaRay4tS", "Start_Frame")
Node.ConReset(Space.CurrentScene() + "/YafaRay4tS", "End_Frame")
Node.ConReset(Space.CurrentScene() + "/YafaRay4tS", "Zero_Padding")
Node.ConReset(Space.CurrentScene() + "/YafaRay4tS", "Number_Start")
// Shrink Play Range - Sets tS Timeline from First Keyframe to End Keyframe
try
{
{
RsTime.AnimStart = RsTime.EvalAnimStart('')
RsTime.AnimEnd = RsTime.EvalAnimEnd('')
Node.Value("/Preferences/AnimPref", "PlayRangeStart") = Node.Value("/AnimMng", "AnimStart")
Node.Value("/Preferences/AnimPref", "PlayRangeEnd") = Node.Value("/AnimMng", "AnimEnd")
}
}
catch (e)
{
}
// Sync tS Timeline with YafaRay4tS
// NOTE -> If there is no keyframes and you start rendering, YafaRaytS will render however many frames are in the tS Timeline -> Need check for no keyframes!!!
s = RsAnimPref.PlayRangeStart;
e = RsAnimPref.PlayRangeEnd;
Node.Value(Space.CurrentScene() + "/YafaRay4tS" , "Start_Frame") = s;
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Number_Start") = s;
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "End_Frame") = e;
// Update Render to File with YafaRay4tS
Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Start_Frame") = Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Start_Frame");
Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "End_Frame") = Node.Value(Space.CurrentScene() + "/YafaRay4tS", "End_Frame");
Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Zero_Padding") = Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Zero_Padding");
Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Number_Start") = Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Number_Start");
}
Render Animation button(S)
Code: Select all
// Render to File - Render Animation button
// Need to update the YafaRay4tS - Render Animation button too!!!
function Execute(params)
{
var Yaf_CamChoice = params.ConValue('Yaf_CamChoice');
var Yaf_Width = params.ConValue('Yaf_Width');
var Yaf_Height = params.ConValue('Yaf_Height');
var Start_Frame = params.ConValue('Start_Frame');
var End_Frame = params.ConValue('End_Frame');
var Zero_Padding = params.ConValue('Zero_Padding');
var Number_Start = params.ConValue('Number_Start');
var Yaf_RenderFilename = params.ConValue('Yaf_RenderFilename');
var bBatchRender = params.ConValue('bBatchRender');
// Update Render to File and start rendering
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Yaf_CamChoice") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Yaf_CamChoice");
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Yaf_Width") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Yaf_Width");
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Yaf_Height") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Yaf_Height");
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Start_Frame") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Start_Frame");
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "End_Frame") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "End_Frame");
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Zero_Padding") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Zero_Padding");
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Number_Start") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Number_Start");
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "Yaf_RenderFilename") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "Yaf_RenderFilename");
Node.Value(Space.CurrentScene() + "/YafaRay4tS", "bBatchRender") = Node.Value(Space.CurrentScene() + "/YafaRay4tS/Render to File", "bBatchRender");
Activity.Run(Space.CurrentScene() + "/YafaRay4tS/VersionCheck"); // This is duplicated in the YafarayScripts - RenderAnimation script
Activity.Run(Space.CurrentScene() + "/YafaRay4tS/RenderAnim2");
// RenderAnimation script - Should add a command that opens the YafaRay4tS Animation aspect
}
Let me know if you would like me to make these changes for you.
If so I need to know if you want the Sequence Player incorporated or not.