How select newly imported object using script

Discussions concerning programming of SOFTIMAGE©
Post Reply
Xsinode
Posts: 26
Joined: 06 Sep 2013, 19:08

How select newly imported object using script

Post by Xsinode » 11 May 2015, 18:45

How I can automaticaly select newly imported object or define coordinates for imported object using script (OBJ or FBX file formats). For example i wanna import my object in scene origin or maybe current mouse position. Thanks.

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 01:41
Contact:

Re: How select newly imported object using script

Post by EricTRocks » 13 May 2015, 17:01

Look up the PickPosition command.

Then you'll have to do some code to get the returned object from the Import commands you're looking for. Then based on the picked position, you will need to set the transform of the objects you import.
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests