It is currently 21 May 2013, 10:36

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Applying several maps to multiple objects
PostPosted: 29 Feb 2012, 16:22 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 347
I know that I would like to write a script for that, e.g. record a script for this purpose. But the point I need to figure out is how to avoid the direct naming of the object. It would need to be something like "current.object" or "selected. object" like in ICE self.

Can somebody please point out the right "vocabulary", "grammar" and probably a reference site/book/pdf for this stuff?

Cheers
THomas


Top
 Profile  
 
 Post subject: Re: Applying several maps to multiple objects
PostPosted: 29 Feb 2012, 16:49 
Offline

Joined: 17 Feb 2010, 16:13
Posts: 102
in VB script it is:
GetValue( "SelectionList" )

_________________
SI 2013 @ WIN7-64


Top
 Profile  
 
 Post subject: Re: Applying several maps to multiple objects
PostPosted: 01 Mar 2012, 01:03 
Offline

Joined: 19 Sep 2010, 11:28
Posts: 347
I'll give it a try! Thanks!


Top
 Profile  
 
 Post subject: Re: Applying several maps to multiple objects
PostPosted: 06 Mar 2012, 16:41 
Offline

Joined: 28 Sep 2011, 10:33
Posts: 82
If you're going to use VBS, you'll need to use Set to get an object. Otherwise you'll get only a string.

But, even if you use Set for that, you will get an Object Collection. So if you have multiple objects selected you may have an error in your process.

I ussually use:

'VBS
dim oObj : set oObj = selection(0)
//JScript
var oObj = selection(0)

But if you do something that changes your selection in your script, this variable will be automatically updated. So if you want to retain the first select object you'll need something like this:

'VBScript
dim oObj : set oObj = getvalue(selection(0))
//JScript
var oObj = getvalue(selection(0))

If you do:
'VBScript
set oObj = getvalue("selectionlist")

you'll have to specify the object index like this:

oObj(0)

this will get you the first selected object.

_________________
M.Yara
Character Modeler | Softimage Generalist (sort of)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group