Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Cannot find a group under a model node
  RSS 2.0 ATOM  

Cannot find a group under a model node
Rate this thread
 
30185
 
Permlink of this thread  
avatar
  • Location: Costa Mesa, CA
  • Total Posts: 6
  • Joined: 08 April 2009 01:28 AM

I’m adding some error trapping into my script so if the group that I’m toggling the visibility isn’t there it tells you so. If the group is a child of a model and not the scene root it doesn’t work at all. All it says is the group doesn’t exist, but if I tell it to select oGroup instead of the if statement, the group is selected.
[INDENT]Set oRoot = ActiveSceneRoot
Set oBiped = oRoot.FindChild("Biped")
Set oGroup = oBiped.Findchild("Bones")

If oGroup Is Nothing Then
LogMessage “The group ‘Bones’ does not exit.”
Else
If GetValue ("biped.hk_bones.viewvis") = 1 Then
SetValue “biped.hk_bones.viewvis”, 0
Else
SetValue"biped.bones.viewvis", 1
End If
End If
[/INDENT]



Replies: 0
avatar

You probably what to do this:

Set oGroup = dictionary.getobject(oBiped&".Bones",false)
If typename(oGroup) = “Nothing” Then



Replies: 0
avatar

That worked! thanks man



Replies: 0