Hey.. I don't know if this has been covered or not.. I tried doing a search and didn't find any useful information. Anyways is there any way in XSI that we can search for only joints or bones within a scene. I know one way of searching is by the standard naming convention but I don't want to do that -> I just want to know if the object I'm searchin is a bone'joint or not. If it is a bone then store it otherwise disregard it.

Thanks,
-C

  • created

    Aug '07
  • last reply

    Aug '09
  • 1

    reply

  • 3.8k

    views

  • 1

    user

2 years later

def bonePicker():
# User selects either a single chain with left click,
# or a left and right chain with middle click.

singleChainMsg = "Pick single chain root"
leftChainMsg = "Pick left chain root"
rightChainMsg = "Pick right chain root"

pickSession = xsi.PickElement(c.siChainElementFilter, singleChainMsg, leftChainMsg)
buttonPressed = pickSession(0)

if buttonPressed == 1:
	# The user left-clicked. Return the root selected.
	chainRootsList = [pickSession(2)]
	# Determine that a root object is selected.
	if checkIfRoot(chainRootsList[0]) == True:
		return chainRootsList
	else:
		return False