Access Stamp UV mesh through scripting

Discussions concerning programming of SOFTIMAGE©
User avatar
myara
Posts: 406
Joined: 28 Sep 2011, 08:33

Re: Access Stamp UV mesh through scripting

Post by myara » 22 Feb 2012, 02:24

Object Method.
http://softimage.wiki.softimage.com/sdk ... rarchy.htm

Use OM is always recommended because it's faster than using commands, doesn't log, and because you'll be working with objects, not names (strings). Commands use names(strings) instead.
A simple case:
OM:
selection(0).name = "asdf"
Command:
SetValue(selection(0).name, "asdf")

SetValue command is not that slow if you turn logs off though.

But I was mistaken in my previous post. You could still using Commands if you get the current material library.

Newcomer (<20 posts) alert: please use the URL tags - HB
M.Yara
Character Modeler | Softimage Generalist (sort of)

User avatar
Pete
Posts: 118
Joined: 16 Jun 2009, 07:28

Re: Access Stamp UV mesh through scripting

Post by Pete » 27 Feb 2012, 01:04

Thanks heaps for the help Myara! I'm Lovin' the script! I'll try to find the time to clean it up a little more and re-upload it.

User avatar
myara
Posts: 406
Joined: 28 Sep 2011, 08:33

Re: Access Stamp UV mesh through scripting

Post by myara » 04 Apr 2012, 15:26

I just realized, a little late :(( , that Kim Aldis script does work with UVs too, you just have to select the Texture Projection before exporting.
M.Yara
Character Modeler | Softimage Generalist (sort of)

User avatar
bottleofram
Posts: 355
Joined: 17 Aug 2010, 09:21

Re: Access Stamp UV mesh through scripting

Post by bottleofram » 04 Apr 2012, 15:39

myara wrote:I just realized, a little late :(( , that Kim Aldis script does work with UVs too, you just have to select the Texture Projection before exporting.
EPSExporter? Yeah, but its buggy, i think.

Ive run into same trouble using it. At one point, i couldn't figure out how, but it completely corrupted my scene. Textures would show one thing in viewport, the other in render tree (thumbnails) and randomly switch between those two for actual render. Pretty sure EPSExport was the culprit.