I have a renderfarm which includes a mixture of Windows and Linux
machines with Maya on them. I am trying to come up with a way to
include both my Windows and Linux huntgroups in a single Alfred job,
such that the Alfred script chooses the correct path to the Maya
executable based upon the platform of the remote machine being used.
I was thinking I might be able to do this using the "-if{}" option for
the RemoteCmd operator, but I don't really know what expression I
should be putting in the -if brackets. So, my Alfred script would look
something like this:
##AlfredToDo 3.0
Job -title {testJob} -service {windows|linux} -init {
Assign mayaWindows {C:/Progra~1/Alias/Maya7.0/bin/render.exe}
Assign mayaLinux {/usr/aw/maya7.0/bin/Render}
} -subtasks {
Iterate fr -from 0 -to 100 -by 1 -template {
Task {frame $fr} -cmds {
RemoteCmd {$mayaWindows -s $fr -e $fr file.mb}
-if {[platform is windows]}
RemoteCmd {$mayaLinux -s $fr -e $fr file.mb}
-if {[platform is linux]}
}
}
}
Any ideas how I could accomplish this? It seems like something that
should be possible.