How to get all the image sources filenames with VBScript

Become a member of the CGSociety

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

Thread Tools Display Modes
  07 July 2012
How to get all the image sources filenames with VBScript

Hey, guys

I'm a novice to scripting with Softimage's VBScript. I 'm wondering how to get all the image sources filenames. In maya, it's quite easy, but with softimage, seems need a lot of skill to do that. Any help would be very appreciated.
  07 July 2012
ok, i got it after several days study.
first u need to get all the 3dobjects, then u can retrieve the properties of the object, then with property "material", u can use a paramter to accomplish it.
the code is like this:

  07 July 2012
that's not the best way.

in XSI, all the material are in the material library. there is no need to enumerate all objects, you can enumerate all the materials directly.

but even better, all the image clips and image sources are in their own respective containers, called Sources.Image or Clips.Image

The EnumElements command creates collection from the children of something

set ImageSourceList = EnumElements( "Sources.Image", TRUE, 0 )
for each source in ImageSourceList
	LogMessage source.Filename
  07 July 2012
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed 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
Society of Digital Artists

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

All times are GMT. The time now is 08:15 AM.

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