PDA

View Full Version : net render vfb show .


hblan
08-23-2006, 03:11 PM
my computer receive jobs from net_render manager , when the job runs it will show a processing dialog and a VFB dialog on my desktop , or minimize in the taskbar .

i want the net render job thread only runs in background . dont show in any place of my desktop . i do it with some code , but not works as i want . the dialogs still here .

my code , for reference :

if isNetServer() do
(
sysinfo.maxpriority = #low -- worked good .
setquietMode on -- make the max open without any pop out dialog .
rendShowVFB = off -- this command dont work.

)

-------------------------------
does anyone give me any new idea ? thanks for feedback .

Maneswar
08-23-2006, 03:56 PM
You cannot control the functions of the render command by that approach... VFB on or off is not determined by the server, it's determined by the render command invoked when someone submits a render... they need to turn off the render vfb. You could see if you have permission to take control of manager via script, access job info and turn off vfb in each job. But that is global, not per server.

Not sure that turning off teh vfb in the source render will prevent a vfb from popping up on the server though... don't remember because I ussually keep teh vfb open (on).

This is as I understand it, but I could be wrong.

Maneswar

hblan
08-24-2006, 09:18 AM
i have tested use the pre_script when sending net render job to the manager .

the "rendShowVFB = off" worked . but the progress dialog is still here , cant be hided . i think it is because jobs sent by the manager of max are all in windows standard program mode , not in dos mode .

if i want hide the progress dialog ,i think , i have to make the server run rendering work in dos mode . this is mean maybe i have to make a manager different to send dos mode net render command to all the job receivers . it looks so cool but maybe hard to do , write a little "qube!" only for max. :(

another idea :
now i can get if the max running is a netserver or not, so , i think maybe i can get this netserver max`s process ID by some command , in script or not . and then let my friend help me with c++ , to hide this process ? does it doable ? at least i have not find something in maxscript reference about how to get max process ID .

hblan
08-24-2006, 10:44 AM
how to get max process ID by script ? 

maybe some tools like "systemTools.NumberOfProcessors()"

i wish some command like : "systemTools.tell_Me_My_ProcessID()" , i can run it when max open , and then write something to a text file , let my friend read it ,and do .......what i want .

ye . wish .....

hblan
08-25-2006, 06:57 AM
tomorrow we will test use the time of max start to find the process ID of max. then change the max process to a windows server process , cause windows dont show the server process in the desktop . wahaha , maybe make it .

when max start :

if isNetserver then
(
sysinfo.maxprority = #low
local theStartTime = localtime
-- give my friend theStartTime .
-- he will list all process of the computer
-- and then search the list array by the start time of the process
-- if equal to theStartTime , then get the process ID of it .
-- that is ok , we can do anything with the process .
-- change the process mode to a windows server mode . "rigedit" ...and so so ....
)

hblan
08-28-2006, 06:41 AM
is here any switch in max script or is a max internal parameter , to hide the render progress dialog when rendering ?

still finding ...

hblan
08-30-2006, 02:38 PM
how to get the "3dsmax.exe" process ID by maxscript or has some plugins witch can do it .
for i dont know C++ . i have found in scriptspot ,but cant find .

CGTalk Moderation
08-30-2006, 02:38 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.