Notifications
Clear all

[Closed] Python + MXS

CgKit is pretty cool. I’m thinking one could use maxscript and the getpropnames command to generate most of the classes required to hold a MAX scene in python code. Minus lofts of course… ha ha…

Yep max 9+ only…

Yeah SQLObject is very cool it makes working with databases much more pythonic with all of your tables mapped to objects etc… I have looked at SQLAlchemy very quickly but have not used it, so I am not sure what benifits of SQLAlchemy are…

Cheers
Dave

Thought I post a Backburner hack and some telnet info for those still struggling to network render with backburner… ( Like us… Uhhggg… )

I've written a Python command line utility to set Dependencies in BackBurner after submission.  To use it, the network folder on the manager needs to have a full control share open to the artists box.    Python connects to the manager via Telnet.  Archives the job and then makes specific changes to the xml document on the server.    Upon unarchiving the job, backburner reads the changed xml data and applies the changes.  

I couldn’t find a way to send the “Update Job” to BB via telnet, it appears to be binary, while every other command is xml… ?

Syntax for usage.
BBSetDependency <Ip Address> <Port> <Dependent Job Name> <Depends on Job Name> {<Depends on Job Name> ...}

Also including in the zip is a txt document outlining some of the other telnet commands I found while sniffing the connection between BB and the monitor.

Much thanks to David Mackenzie < specxor > for PyBurner, my starting point for this!

finally! thanks heaps for this awesom share. The inablity to set backburner dependencies via mxs has been holding us back for too long! I’ll be checking this out asap.

What I really miss in pyburner is func for submitting new job to backburner. I tried do do that on my own.
I’ve intercepted data sent to backburner while submitting job. This seems to be simple xml. When I send this data using telnet connection nothing happens. By nothing I mean job doesn’t appear in queue.

tn = telnetlib.Telnet("bbmanager", 3234)
    print tn.read_until("backburner>", WAIT_TIME)
    tn.write("new job 4692")
    f = open("S:/sent.txt","rt")
    try:
    	for line in f:
    		print line
    		tn.write(line)		
    finally:
    	f.close()
    	
    print tn.read_until("backburner>", WAIT_TIME)

sent.txt contains data from intercepted packets. I think this is right way to do it but I’m probably missing something. Do you have any ideas how to solve this problem?

I don’t know what protocol Backburner uses for sure, but I doubt it’s Telnet.

If the packets you’re snagging always contain XML, it’s more likely xmlrpc or a custom protocol. Have a look at the xmlrpclib module in the Python standard library.

Lechoo: Have you tried sending the whole XML vs. sending line by line… I don’t think telnet likes that…


HELP! Having an issue with the blurPython.dlx?

I just DL’d the BlurBeta, installed for max9 , copied the dlx in and it’s not working as the original.
Has the class name been changed?
Could it be because I’m in 32bit max 9 but on XP64?

Thanks

1 Reply
(@lechoo)
Joined: 10 months ago

Posts: 0

I’ve tried both. None of them works.

Hi,

we have two solution for communication with backburner

with telnet, u can try in command line for know command

with simple tcpip protocol, like a simple client

i use it for create a new monitor, with pyqt

an other solution is to warp 3dsmax lib from sdk for “net communication”, i think more simple, but i don”t try it

Kermit

edit : i forget, i use ethereal for snif communication between manager and standart monitor

Lechoo;
I’ve tried a few different things to create a job, but didn’t see that much use as you can create any job BB will render through cmdjob.exe or 3dsmaxcmd.exe…

1 Reply
(@lechoo)
Joined: 10 months ago

Posts: 0

I need to submit non-3dsmax job from non-windows machine and in this case cmdjob.exe or 3dsmaxcmd.exe can’t be used.

Well, I’ve got a start going in learning some python by using a slight modification of the Lazy Evaluation Directory Treeview sample found on the wxPyWiki. combined with the ThumbnailCtrlfrom Andrea Gavana. And its blazing fast compared to what i’ve seen in maxscript and dotnet so far in terms of thumbnail generation from even very large images and directory structures.!

thought that this might be of interest since I know there’s a couple other guys on here in the ‘asset/prop’ experimenting mode currently. nothing quite finished enough for release though yet…

Page 17 / 26