RenderMan & RISpec >> Alfred scripting - conditional Cmd by platform type

by danebarney@gmail.com » Sat, 18 Feb 2006 05:27:34 GMT

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.


Similar Threads

1. Alfred retry all errors shell script - RenderMan & RISpec

2. Cannot Type Anything Into Script-Fu Console

I am doing the Script-Fu tutorials in Gimp version 2.4.5 on Windows XP. 
I have invoked the Script-Fu console by going to Xtns > Script-Fu > 
Script-Fu Console. I cannot type anything into this console. Anything I 
type does not appear there. Am I supposed to be able to? If not how are 
scripts supposed to be edited and debugged?

-- 
If you desire to respond directly remove the "sj." from the domain name 
part of my email address. It is a spam jammer.

3. GRAPHICS cmd in Win98 version of DOS

4. gimp 2.2.10 windows optional parameters in scheme (script-fu) scripts cause failure of script

Hi All,

First of all, I'm a new reader of this newsgroup, so Hi everybody.
Here is a description of my problem:
I use gimp 2.2.10 for Windows, In a script I use a call to
(plug-in-mblur TRUE img shape 0 5 angle)
this generates an error that there are to few parameters. So
I checked the information and it states that there are 2 optional parameters 
at the end.
x-offset and y-offset. I added two parameters to it and voila it is working. 
But I'm a bit
confused now. Is in script-fu optional not optional, can somebody shed some 
light on this.

Thanks in advance
Nizcka (The Netherlands) 


5. Alfred Problem!!! - RenderMan & RISpec

6. Alfred Service Keys?

Hello all.

If I wanted to create my own Alfred Service key, which file would I
edit this info into? I look all through docs and see no information on
this.

cheers
--rw

7. how can i make word stop typing over already typed entries

8. Conditional Graphics

I am producing a report with a detail section that can be several records 
long. I would like to produce a graphic under certain records in the detail 
that meet specific criteria (e.g., numerical results equal to 100).  Is there 
an easy way to introduce graphics that are conditional based on the value in 
the detail record?