Python + MXS

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

REPLY TO THREAD
 
Thread Tools Search this Thread Display Modes
Old 06 June 2007   #16
Please pardon my eternal ignorance, but what is the advantage to this Python/MXS tie in? I haven't worked with Python before, what can it do that MXS can't?

Any example applications? In other words.

Thanks.
__________________
||||| www.wahooney.net |||||
Head Towards the Light

Learning to use Blender3d
 
Old 06 June 2007   #17
Hi, Guys,

Fist off, Camera Server that I mentioned is a simple little app im working on, that will keep animated cameras in sync. So an animator can be animating the camera and lets say a lighter is lighting the scene then his camera will have a live link to the animators etc... If that makes sense?? I am hoping to finish it 'this' week and ill post all the source for everyone to check out hopefully there will no be to much spaghetti code in there

Anyways to answer a couple questions:

Wahooney, Python can't really do more then Maxscript in fact its the other way around more that python is limited to what mxs can do, were Pythons power lies is in its ability to "tie it all together" which is why its so good for building pipelines with...

PEN, I second that a quite beach were i can sit down with laptop and gets some stuff done... wait quite beach, mmm forget the laptop...

ypuech, I had actually read that link a while ago, It does however show the power of com when used to communicate through software...

Kermit, I have only played with IronPython a little bit (IronPython is a version "distro" of python that runs on the .Net virtual machine (? I think so) ) I thought the standard library was implemented? I'm not sure if Iron python makes it easier to add python scripting to a dot net app, maybe ypuech could shed some light on this?

If there any specific examples of python scripts you guys want just let me no... I am hoping to be able to show you an example of a render manger written in python (for vray standalone, but could easily add the functionality for different renders etc...) but thats a little ways off yet.

Cheers
Dave

More code coming this week!
 
Old 06 June 2007   #18
Hi,
i've test succefully to implement a dotnet dll ( write in ironPython ) and integrate with in a maxscript rollout (thx to Yannick Puech for tutorial )

i need to try some Net 3 ( XAML ) dll for better UI ( like character vector drawing for rigging ), always with IronPython

the help tutorial mention u can import standart python library, but i do not test
i need more free time for this, it's only a idea for your post . the big advantag i see is the communication between dontnet and mxs implemente by Autodesk

Kermit

ps : maybe difficult to read me, my english is very bad, sorry
 
Old 06 June 2007   #19
Wahooney, Python can't really do more then Maxscript in fact its the other way around more that python is limited to what mxs can do, were Pythons power lies is in its ability to "tie it all together" which is why its so good for building pipelines with...


I'd say:
Python's power is the one of a middleware.
All the c#/.net stuff is limited to winOS. Using python you can implement osindpendend clients and data parsers.
This might be based on thin ice but:
Python is definitely a stronger string and xml parser than maxscript.
I used python in the past mainly in peparing data for indesign and illustrator.
__________________
Georg Duemlein
 
Old 06 June 2007   #20
Originally Posted by specxor: I thought the standard library was implemented? I'm not sure if Iron python makes it easier to add python scripting to a dot net app, maybe ypuech could shed some light on this?

Yes, you can extend .Net applications with ironPython.

I've only heared a little bit about ironPython. Seems powerful. It's very useful to be able to create a managed assembly and use it under 3ds Max.
__________________
 
Old 06 June 2007   #21
I'm curious...with the implementation of python in maya, i'm wondering if max will head the same way??

If so, do you think it's a good thing or a bad thing?

Personally, I'd like to see a little more OO implementation in the API (I know the core API is OO, but max script isn't ... to my meger knowledge ... but this is not the place for that disscussion)

Personally. I'd like to see the scripting side updated, as powerful as it is and as simple as it can be, it can sometimes be frustrating...just gets you close enough to a solution, but not quite overline.

Just thought I'd ask the question and see what others think
 
Old 06 June 2007   #22
Hi Shane,

I think adding Python to 3ds Max would be a pain... Maya is well designed so adding Python to it wasn't so difficult. It's not the same story for Max.
__________________
 
Old 06 June 2007   #23
Originally Posted by rdg: I'd say:
Python's power is the one of a middleware.
All the c#/.net stuff is limited to winOS. Using python you can implement osindpendend clients and data parsers.
This might be based on thin ice but:
Python is definitely a stronger string and xml parser than maxscript.
I used python in the past mainly in peparing data for indesign and illustrator.


I agree completly, python is very good at gluing the pipeline together even more so if you have a multi package workflow so max maya fusion/shake.... and yes python string parsing is very strong along with its XML parser which is all C and well developed...

Originally Posted by ypuech: I think adding Python to 3ds Max would be a pain... Maya is well designed so adding Python to it wasn't so difficult. It's not the same story for Max.


I have to admit I would love to see python in max, although i think hell will freeze before it happens

Cheers
Dave
 
Old 06 June 2007   #24
Here is one that I would like to see as it is right up the line or what I'm doing. A tie in with the Python XML parser and a data base. I gather this is possible but I haven't looked into what data bases Python will work with, I'm guessing any of them. Is this correct?
__________________
Paul Neale
http://paulneale.com
 
Old 06 June 2007   #25
I'm guessing any of them. Is this correct?


This is correct.

The reason that hold me back from doing extensive DB stuff until now was:
Not many people like to have a DB on the same machine as a maxinstallation.
Also: not many admins like a DB that is accessible from any host.
All this leads to proxy scripts, where you have the scripts running on the DBserver that will be queried through HTTP or curl (don't know what the python name for curl is).

But speaking of xml and databases:
Maybe a XML database like eXist is a good idea, as parsing xml from/to relational db's like mysql is sometimes ugly.
__________________
Georg Duemlein
 
Old 06 June 2007   #26
Thanks, I'll dig further.
__________________
Paul Neale
http://paulneale.com
 
Old 06 June 2007   #27
MySql is really simple in Python with the 'MySQLdb' module, it makes connection and interacting with the database simple. For xml i like Element Tree which as of version 2.5 of python is in the standard lib. Its very fast and easy to use.

I do prefer to with XML than SQL, I wrote our server here in Python that works off a XML back end, its not to difficult to do, so long as you can get your head around threading etc...

Cheers
Dave
 
Old 06 June 2007   #28
cool , im waiting for it long time . with python , im free from max envirment , and free from C++ . lol .
__________________
-- to be better every day --
google talk : haibo.lan@gmail.com
msn: ehblan@hotmail.com
-- add me to ur IM buddy list as u wish.
 
Old 06 June 2007   #29
Originally Posted by specxor: MySql is really simple in Python with the 'MySQLdb' module, it makes connection and interacting with the database simple. For xml i like Element Tree which as of version 2.5 of python is in the standard lib. Its very fast and easy to use.

I do prefer to with XML than SQL, I wrote our server here in Python that works off a XML back end, its not to difficult to do, so long as you can get your head around threading etc...

Cheers
Dave


Just so that I'm clear on this. There is an XML data base? Is this free? Or are you writting XML files?

I'm just working on modules in Python, this is far easier then Perl that is for sure. Well for me anyway. The help files are really good so far.
__________________
Paul Neale
http://paulneale.com
 
Old 06 June 2007   #30
Need a bit of help on packages? Is a package just a diescription file of what modules to import?

So you list the name of the package and then the names of the sub folders and then the modules in them??
__________________
Paul Neale
http://paulneale.com
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:13 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.