Is there any way to figure out what other undocumented goodies (similar to 
"LoadMode") are hidden under "ImportFBXOptions"?

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de
From: [email protected]
To: [email protected]
Subject: RE: FBX: all takes in one import?
Date: Wed, 2 Sep 2015 11:34:48 +0200




Thanks.I have looked at the log and think I've figured it out.Using 
"Application.SetValue("ImportFBXOptions.LoadMode", 3, 0)"  I am able to load 
the Takes as Action Sources. But this seems to be undocumented or am I looking 
in the wrong place?

Too bad there doesn't seem to be a better way to figure out how many Takes are 
actually embedded in the FBX file beforhand.But that's not really a 
show-stopper to me right now.
Thanks all once more...
Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de
Date: Wed, 2 Sep 2015 16:29:30 +0900
Subject: Re: FBX: all takes in one import?
From: [email protected]
To: [email protected]

The Crosswalk property is for Crosswalk dotXSI if I'm not mistaken.
For Import FBX, you'll need the Import FBX Property.
Ssomething like this:
//JScriptvar fbxpath = "your FBX File"var take = "Number of the take"
var r = ActiveSceneRootvar fbxProp = r.properties("ImportFBXOptions");if 
(!fbxProp ) fbxProp = r.AddProperty( "ImportFBXOptions" 
);fbxProp.ImportHardEdges = 1FBXImport ( fbxpath, take )
Play with the Checkboxes, look at the logs and customize it.


That's how I create custom importers / exporters to be sure everyone is using 
the same parameters and automatize some other things.
Martin


On Wed, Sep 2, 2015 at 4:07 PM, Leendert A. Hartog <[email protected]> wrote:
Thank you very much!

That would seem enough info even for me to code something s



--- Original Message ---



From: "Luc-Eric Rousseau" <[email protected]>

Sent: 2 September 2015 02:12

To: [email protected]

Subject: Re: FBX: all takes in one import?



as far as I know, the fbx commands take all their parameters from that

crosswalk property set at the scene root.

http://softimage.wiki.softimage.com/xsidocs/import_export_xwalk4xsi_ScriptingCrosswalkForSoftimage.htm



I don't think there is anything to query the number of takes.  The

actual Autodesk FBX sdk has python bindings, but that just sounds like

too much work for what you need.  Import until it fails!





On 1 September 2015 at 14:53, Leendert A. Hartog <[email protected]> wrote:

>

> Okay, there hopefully is room for one more silly question:

> The UI offers an option to import animation as action source,

> where can I find the sdk equivalent?

>

> Greetz

> Leendert

> AKA Hirazi Blue

> Softimage hobbyist, admin at si-community.com & xsiforum.de

>

> Counting the misfired previous post, that's five posts in a row, I'll shut

> up now...

> ________________________________

> From: [email protected]

> To: [email protected]

> Subject: RE: FBX: all takes in one import?

> Date: Tue, 1 Sep 2015 19:04:26 +0200

>

>

> In Jscript the command works and the takes are indeed imported separately,

> in Python I obviously should add some ''magic prefix" or such.

> I was obviously looking in the wrong places...

> Thanks.

> Bonus question:

> For looping purposes: is there a way to get the number of takes in a FBX

> file as an integer?

>

> Greetz

> Leendert

> AKA Hirazi Blue

> Softimage hobbyist, admin at si-community.com & xsiforum.de

>

> ________________________________

> From: [email protected]

> To: [email protected]

> Subject: RE: FBX: all takes in one import?

> Date: Tue, 1 Sep 2015 18:53:01 +0200

>

> Having hopefully averted disaster, I''m back:

> Okay, have to humbly admit to my utter NOOBness,

> but when I try to use "FBXImport" I get a "name (...) not defined" error...

>

> Greetz

> Leendert

> AKA Hirazi Blue

> Softimage hobbyist, admin at si-community.com & xsiforum.de

>

> ________________________________

> From: [email protected]

> To: [email protected]

> Subject: RE: FBX: all takes in one import?

> Date: Tue, 1 Sep 2015 18:37:39 +0200

>

>

> I will have to get back to you about this.

> My workstation just now seemingly died on me, so now I must try to

> resuscitate it first...

>

> Greetz

> Leendert

> AKA Hirazi Blue

> Softimage hobbyist, admin at si-community.com & xsiforum.de

>

> ________________________________

> Date: Tue, 1 Sep 2015 12:08:18 -0400

> Subject: Re: FBX: all takes in one import?

> From: [email protected]

> To: [email protected]

>

> what happens when you run the FBXImport script command, with different

> takeIDs, does it work?

>

> On 1 September 2015 at 11:18, Leendert A. Hartog <[email protected]> wrote:

>

> No, it wouldn't.

> But they have already (and repeatedly) stated their initial goal to focus on

> the Unity crowd.

>

>

> Greetz

> Leendert

> AKA Hirazi Blue

> Softimage hobbyist, admin at si-community.com & xsiforum.de

>




                                                                                
  

Reply via email to