The Area http://area.autodesk.com/forum/ The Area en Copyright 2013 2013-05-19T04:28:39+02:00 Spread...access the first column from another cell? http://area.autodesk.com/forum/autodesk-motionbuilder/python/spreadaccess-the-first-column-from-another-cell/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/spreadaccess-the-first-column-from-another-cell/page-last/#When:13:18:39Z I'm having quite a bit of trouble finding out how to do this. Does anyone know how I would read anything in the first column by running a process from clicking any of the cells not in far left column? ~Danilo 2013-05-17T13:18:39+02:00 MB 2011 bug, SetCellValue http://area.autodesk.com/forum/autodesk-motionbuilder/python/mb-2011-bug-setcellvalue/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/mb-2011-bug-setcellvalue/page-last/#When:18:31:53Z I know this probably isn't being supported, but it should be documented. If you try to put a int, float, etc into a cell using "SetCellValue" it fails. It only seem to work if you are inputting strings. If you run Spread.py in 2011, it's pretty evident. If you trying to do this, there is a bug. ~Danilo 2013-05-16T18:31:53+02:00 FBApplication.FileMerge() issue http://area.autodesk.com/forum/autodesk-motionbuilder/python/fbapplicationfilemerge-issue/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/fbapplicationfilemerge-issue/page-last/#When:08:21:13Z simply trying to merge in a file and add a namespace to the items, mimicking the functionality in the GUI when selecting File | Merge. Back in 2010 this worked: [code] FBApplication().FileMerge( myfile, False, 'mydude ) [/code] We are using MB 2013x64, and I see that the third arg must be FBOptions, but I don't see anything for setting the namespace you want to use? Using "SetNamespaceList" throws an error, but using some old code from 2011 doesn't throw an error (or work for that matter): [code] FBOptions.CustomImportNamespace = 'mydude' [/code] 2013-05-10T08:21:13+02:00 how to select branches? http://area.autodesk.com/forum/autodesk-motionbuilder/python/how-to-select-branches/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/how-to-select-branches/page-last/#When:17:30:25Z Hi, I want to select branches for an item that appears in the scene list on the navigator tab in the GUI. I'm able to select the objects that appear in the schematic view, but how can I select everything else in the branch, in particular, shaders, materials, lights, constraints, and groups? thx, BRian 2013-05-09T17:30:25+02:00 2014 SDK Docs? http://area.autodesk.com/forum/autodesk-motionbuilder/python/2014-sdk-docs/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/2014-sdk-docs/page-last/#When:10:24:02Z I'm switching from 2011 and I'm finding the Python SDK docs broken or at least severely lacking (look up something like FBSystem) for versions 2012 through 2014. I hope I'm just missing something really obvious? Cheers, Sune 2013-05-06T10:24:02+02:00 Relation Constraint FCurve (%) http://area.autodesk.com/forum/autodesk-motionbuilder/python/relation-constraint-fcurve-/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/relation-constraint-fcurve-/page-last/#When:17:25:18Z Hey Guys, I'm writing some tools right now to drive bone rotation via a Relation Constraint. I've got everything mostly worked out with creating and connecting nodes in the constraint - but I'm having a bit of trouble with the FCurve (%) node. Does anyone know how to add/modify keys on one of these via script? Any help or ideas would be appreciated. Thanks! 2013-05-04T17:25:18+02:00 FBList DropDownList - MultiSelect & ExtendedSelect http://area.autodesk.com/forum/autodesk-motionbuilder/python/fblist-dropdownlist---multiselect--extendedselect/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/fblist-dropdownlist---multiselect--extendedselect/page-last/#When:11:48:53Z What have I missed? [code] lFBList = FBLIst() lFBList.Style = FBListStyle.kFBDropDownList lFBList.MultiSelect = True lFBList.ExtendedSelect = True lFBList.Selected( 0, True ) [/code] When I run the above code I can not multi-select (I'm guessing I use the Ctrl key) and can not extend my selection (I'm guessing I use the Shift key) either way I can not select anything other than the default.... any suggestions? -js. 2013-04-30T11:48:53+02:00 Dialog-less SaveSelected on MB2011 through Python http://area.autodesk.com/forum/autodesk-motionbuilder/python/dialog-less-saveselected-on-mb2011-through-python/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/dialog-less-saveselected-on-mb2011-through-python/page-last/#When:18:00:13Z Hi all, I'm having some problems getting MotionBuilder to save a selection to a specified file. In the offline help files, it gives the following example: [code]# Copyright 2009 Autodesk, Inc. All rights reserved. # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # Topic: FBApplication.FileSave # from pyfbsdk import FBApplication, FBFbxOptions lOptions = FBFbxOptions(False) # For now use a hard-code filename... Could have used the FBFilePopup. # Save only selected files, in ASCII format so we can have a look # at the file. lOptions.SaveSelectedModelsOnly = True lOptions.UseASCIIFormat = True # There is no point in saving all the system information... # We just want the selected models. lOptions.BaseCameras = False lOptions.CameraSwitcherSettings = False lOptions.CurrentCameraSettings = False lOptions.GlobalLightingSettings = False lOptions.TransportSettings = False # Now do the actual save. if not FBApplication().FileSave(r"c:SaveSelected.fbx", lOptions): print 'Problem saving the file: FileSave()' # Cleanup del(lOptions, FBApplication, FBFbxOptions) [/code] However, this isn't linked through the online documentation... Possibly because it's broken? When I run it myself, though, it pops up a Dialog box as though I'd just selected "Save As" from the menu - as if I'd just called: [code]FBApplication().FileSave()[/code] Any idea how I can do this? Cheers 2013-04-29T18:00:13+02:00 Spread.py and setting FBCellStyle http://area.autodesk.com/forum/autodesk-motionbuilder/python/spreadpy-and-setting-fbcellstyle/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/spreadpy-and-setting-fbcellstyle/page-last/#When:13:32:13Z I'm attempting to put various types into spreadsheet cells (buttons, vectors, ints, reals, etc)...w/o any luck. In fact, I can not get the sample Spread.py (Running MoBu 2012) to populate the cells with any values other than the text field.... # From shipped code... [code] s = FBSpread() s.Caption = "Spread" mainLyt.SetControl("main",s) s.ColumnAdd("Col 1") s.ColumnAdd("Col 2") s.ColumnAdd("Col 3") s.RowAdd("Row 1", 0) s.RowAdd("Row 2", 1) s.RowAdd("Row 3", 2) s.OnCellChange.Add(OnSpreadEvent) s.OnRowClick.Add(OnSpreadEvent) s.OnColumnClick.Add(OnSpreadEvent) s.OnDragAndDrop.Add(OnDragAndDrop) c = s.GetColumn(0) c.Caption = "first column" s.SetCellValue(0, 0, 3) s.SetCellValue(0, 1, 3.1416) s.SetCellValue(0, 2, "py = 3.1416") [/code] # only populates cell 0,2 with the text.....any ideas? signed confused.... -js 2013-04-26T13:32:13+02:00 import c3d's with timecode http://area.autodesk.com/forum/autodesk-motionbuilder/python/import-c3ds-with-timecode/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/import-c3ds-with-timecode/page-last/#When:18:32:29Z Hi everyone, using MB 2013x64 and trying to batch import some c3d's with timecode into an existing setup scene and reset the start frame to 0. I'm getting the file named correctly but the data isn't importing: [code] Options = FBBatchOptions() Options.StartAnimationAtZero = True Options.mInputFileFormat = FBBatchFileFormat.kFBBatchFileFormatC3D Options.mProcessType = FBBatchProcessType.kFBBatchProcessTypeLoad mod = FBFindModelByName( 'C3D:optical' ) #Filename set elsewhere FBApplication().FileImportBatch( Filename, Options, mod ) [/code] A new take with the right name gets created and it claims it has keys, but there's no data. If I comment out the "StartAnimationAtZero" the take gets created but again, no data. 2013-04-18T18:32:29+02:00