Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / Can I delete Poses by python?
  RSS 2.0 ATOM  

Can I delete Poses by python?
Rate this thread
 
40414
 
Permlink of this thread   Subscribe to this thread
avatar
  • potara
  • Posted: 04 March 2010 09:45 PM
  • Total Posts: 1
  • Joined: 15 January 2007 01:58 PM

Hi,I got some trouble when I want to delete Poses by this Python Script.

lposes FBSystem().Scene.Poses
poselist 
[]
for lp in lposes:
    
poselist.append(lp)
for item in poselist:
    
item.FBDelete()

But I replace “.Poses” above into “Textures”, I can delete textures.
I thought Pose and Texture are both same component…
Can’t I treat Pose and Texture in the same way?
Could someone point me in the right direction for this?



Replies: 0
avatar

Hey I know I’m a little late with the post but better late than never I guess.  You were really close to solving your problem.  You were using “Pose” instead of “CharacterPoses.  Oddly enough when I used your original code it gave me the skinCluster for my mesh that was in the scene.

From the help docs:

FBListCharacterPose  CharacterPoses 
  
List: Character poses in scene

FBListPose  Poses 
  
List: Poses in scene.

Code:

lposes FBSystem().Scene.CharacterPoses
poselist 
[]
for lp in lposes:
    
poselist.append(lp)
for 
item in poselist:
    
item.FBDelete()

Dan M.



http://www.danielmccrummen.com

Replies: 0




   
  Settings Choose Theme color: