Request to the plugin writer

Foundry Modo (Developed by stenson, Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Post Reply
PhilLawson
Licensed Customer
Posts: 34
Joined: Thu Jan 21, 2010 3:48 pm

Hello,

Just a quick note to whoever is the plug-in/script writer for the modo exporter in that if you are using sceneservice or layerservice commands though a scripting interpretor, you will find that it is much faster using the ScriptQuery Interfaces (see page 112 of the scripting and commands documentation). Slightly more code, but the time difference is well worth it.

i.e.

Code: Select all

svc = lx.Service("layerservice")
svc.select("verts", "all")
verts = svc.query("verts")
svc.select("vmaps", "all")
svc.select("vmap.name", "0")
for vert in verts:
    svc.select("vert.vmapValue", vert)
    vmapval = svc.query("vert.vmapValue")
will be much faster than:-

Code: Select all

for vert in verts:
    lx.eval('query layerservice vert.vmapValue ? %s' % vert)
Cheers
Vista 64bit | Nvidia 580GTX 1.5GB | Intel Core Quad 9550 2.83GHz | 8GB RAM
User avatar
stenson
Licensed Customer
Posts: 53
Joined: Wed Jun 02, 2010 8:51 pm

Hey Phil! Great to see you here!

I'll definitely have this in mind!
I'm going to do some tests to find out how much faster it is.

cheers
Fredrik Stenson

http://www.stenson.tv
modo resource @
http://www.modo.stenson.tv
PhilLawson
Licensed Customer
Posts: 34
Joined: Thu Jan 21, 2010 3:48 pm

Hi Fredrik! Also good to see you here.

It is a great deal faster - Gwynne posted a rather nice comparative test between the two methods (sorry, can't remember where), and the timings with complex scenes were reduced greatly. The same method can be applied to sceneservice, but I personally find it more of a benefit when working with selected components and vmaps.

Cheers.

EDIT: Of course, if your using the File I/O SDK, then the above is moot as the slowdown occurs through the python/perl interpretors. :)
Vista 64bit | Nvidia 580GTX 1.5GB | Intel Core Quad 9550 2.83GHz | 8GB RAM
archigrafix
Licensed Customer
Posts: 201
Joined: Tue Jan 26, 2010 5:37 pm
Location: FRANCE

great to see things are moving here! So when you plan for version we can test? I know it's perhaps a little too direct but a plugin for direct export is needed so much...
User avatar
El Burritoh
Licensed Customer
Posts: 55
Joined: Fri Jun 11, 2010 12:30 am
Location: Tennessee
Contact:

So Frederik is doing this? Awesome! Can't wait!
Post Reply

Return to “Foundry Modo”