The Area http://area.autodesk.com/forum/ The Area en Copyright 2012 2012-05-26T11:20:57+02:00 export HTR using Python http://area.autodesk.com/forum/autodesk-motionbuilder/python/export-htr-using-python/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/export-htr-using-python/page-last/#When:11:51:24Z Hey all, so I can manually select a hierarchy and select File | MotionFile Export and export out an HTR, but I'm having trouble doing the same thing using python. More specifically, I don't see an option in FBFbxOptions or in FBApplication to choose an HTR as the export type. In fact, FBApplication.FileExport() seems to export only AMC/ASF files as it has no options. I looked at the header for FBFbxOptions and the file type can only be set to MB 2010 or 2011 (and this is using 2012, so I guess the dox haven't been updated). Any thoughts? 2012-05-25T11:51:24+02:00 [opticalMarkers] Split Segment / Remove Segment / Auto-Rigid http://area.autodesk.com/forum/autodesk-motionbuilder/python/opticalmarkers-split-segment--remove-segment--auto-rigid/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/opticalmarkers-split-segment--remove-segment--auto-rigid/page-last/#When:05:45:03Z I would like to upgrade my workflow during mocap cleaning. It's confusing when I need to click everytime direct to button. Question: How can I get by scripy to trhose tools > Split Segment / Remove Segment / Auto-Rigid 'type'. It shows when optical marker is selected in navigartor. I would like to execute those scripts by user shourtcuts. 2012-05-17T05:45:03+02:00 How to alter the specularity of all materials via python? http://area.autodesk.com/forum/autodesk-motionbuilder/python/how-to-alter-the-specularity-of-all-materials-via-python/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/how-to-alter-the-specularity-of-all-materials-via-python/page-last/#When:21:44:12Z Can someone show an example of how to set the specularity to 0 on all materials in the currently loaded scene? Thanks 2012-05-16T21:44:12+02:00 How to change light type from Point to Infinite http://area.autodesk.com/forum/autodesk-motionbuilder/python/2-how-to-change-light-type-from-point-to-infinite/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/2-how-to-change-light-type-from-point-to-infinite/page-last/#When:21:18:21Z I have many lights I need to change from Point to Infinite in each of my scene and keep all other parameters the same (color, intensity, position, rotation, parent...). Is it possible to get this done in Python simply? Thanks. 2012-05-16T21:18:21+02:00 How to use FBCharacterFace http://area.autodesk.com/forum/autodesk-motionbuilder/python/how-to-use-fbcharacterface/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/how-to-use-fbcharacterface/page-last/#When:20:57:44Z Hi guys, I want to add blendshape model to FBCharacterFace with python ,The script is work. But I can not add blendshape model to FBCharacterFace , I don not know why. Please give me some example ,Thanks very much This is my script: from pyfbsdk import * sys = FBSystem() scene = sys.Scene ListCha = FBModelList() for model in scene.Components: if type(model) == FBModel: FBModelList.append (ListCha, model) for lCharacterFace in scene.CharacterFaces: if lCharacterFace.Name == 'Character face': FBCharacterFace.ShapeGroupAdd(lCharacterFace, ListCha, 'ChiYan_Face') 2012-05-16T20:57:44+02:00 Instantiate Character face and add blendshape model into Character face http://area.autodesk.com/forum/autodesk-motionbuilder/python/instantiate-character-face-and-add-blendshape-model-into-character-face/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/instantiate-character-face-and-add-blendshape-model-into-character-face/page-last/#When:20:51:41Z Hi guys, I have a rookie question. How do I instantiate Character face and add blendshape model into Character face with python? Plese give me some example,Thanks vrey much^^ 2012-05-16T20:51:41+02:00 Event based on SMPTE timecode -HELP http://area.autodesk.com/forum/autodesk-motionbuilder/python/event-based-on-smpte-timecode--help/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/event-based-on-smpte-timecode--help/page-last/#When:09:57:14Z Hi all! I would like you to ask for help. I built a device transmitting precise location - a real camera to MotionBuilder. Sending data via rs323, using Python script and PYserial . Everything works fine but I have a problem with using timecode to the trigering of reading data from the RS232 port and update the virtual camera position in MotionBuilder. I would like to trigger this process every single frame. Unfortunately I do not pretend to. I am a newbie and I ask for help. Kenny 2012-05-12T09:57:14+02:00 Mobu 2012: GetAnimationNode() no longer working for Diffuse? http://area.autodesk.com/forum/autodesk-motionbuilder/python/mobu-2012-getanimationnode-no-longer-working-for-diffuse/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/mobu-2012-getanimationnode-no-longer-working-for-diffuse/page-last/#When:01:45:07Z I am attempting to access the node information from a Diffuse property in a Material, in MoBu2012. In MB 2010 I could do this: [code]lMaterial.PropertyList.Find("Diffuse").GetAnimationNode().Nodes[0][/code] However, in MB 2012, it doesnt even allow me to do this: [code]lMaterial.PropertyList.Find("Diffuse").GetAnimationNode()[/code] ...but it does work on Transparency: [code]lMaterial.PropertyList.Find("Transparency").GetAnimationNode()[/code] Does anyone have any ideas on a work around so I can access the the node information for the Diffuse property? Any help would be awesome, Thanks! 2012-05-02T01:45:07+02:00 How to change light type from Point to Infinite http://area.autodesk.com/forum/autodesk-motionbuilder/python/how-to-change-light-type-from-point-to-infinite/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/how-to-change-light-type-from-point-to-infinite/page-last/#When:13:18:32Z I have many lights per scenes I need to change from Point to Infinite and keep all other parameters the same (color, intensity, position, rotation, parent...). Is it possible to get this done in Python simply? Thanks. 2012-04-30T13:18:32+02:00 generic creation of elements http://area.autodesk.com/forum/autodesk-motionbuilder/python/generic-creation-of-elements/page-last/ http://area.autodesk.com/forum/autodesk-motionbuilder/python/generic-creation-of-elements/page-last/#When:15:02:28Z Based on a custom-built menu the user can select an element for creation. For example, I can create a drop-down list of things like: null marker cube camera I can if/elif to create the object: [code] if selection == 'cube': FBModelCube( 'mycube' ) elif selection == 'camera': FBCamera( 'mycamera' ) # etc. [/code] I'd rather not enumerate every single type of item the user might want to create and have 90 gazillion if/elif's. Since the list of items the user can create is customizable, I have no idea what he might have put in the list (assume they're all valid MB objects). Ideally, I'd like to be able to do something like this: [code] selection = SelectItemFromList() FB$selection( 'my thingy' ) [/code] And voila, whatever the user selected is created. I've obviously omitted some implementation details, but the general idea is clear. Any way about this? Or am I resigned to a ton of elif's? 2012-04-20T15:02:28+02:00