wrong arguments 2003-11-28 - By "Horvátth Szabolcs"
Back Hi,
I have a mel script problem that is related to some 4.5 and 5.0 MR rendering process changes. My script calls two different procedures for the old and new maya versions by querying the version. The problem is that the mentalrayPreviewRender process definition of 5.0 is different than 4.5`s so when the script is sourced under maya 5, it just spits out an arror message: //Wrong number of arguments on call to mentalrayPreviewRende (that is correct for 5.0, since it was set up for 4.5)
The question is, how can I keep the two commands in the same script, to work ok with both versions? (I'd like to avoid using two separate scripts for the two versions.) Can I somehow filter what I want to source?
Thanks.
Cheers, Horvatth Szabolcs
if (`substring $version 1 1` == "4" && $renderer == "mentalRay") mentalrayPreviewRender 4 ""; else { if (`substring $version 1 1` == "4") renderWindowRender renderRegion renderView; else renderWindowRenderRegion renderView;
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|