Notifications
Clear all

[Closed] Reactor_RBCollection_Interface

so far i found 1 or 2 small errors in documentation concernning the RigidBodyCollections
and i just figured that “Tab” shouldn’t be there

but the thing is i can’t get the interface of the elements in the
RigidBodyCollection to change their properties … i can’t get the “heirarchy (that’s what i call it anyway)” to walk down to the interface

m=Rbcollection()
select m
Showproperties $

output

.disabled : boolean
.odeSolver (ODE_Solver) : integer
.rigidBodies : node by value array

at this point “.properties” … it’s a dead end !
and the examples in the Ref. keep throwing errors

to put it in a simple way , i create a teapot add it to a RBcollection
now i want to access its collision propereties through MXS

please help ! :banghead:

4 Replies

Thanks for pointing this out. I have logged the documentation error so it will get fixed for Max 10.

However I can’t comment on your other problem because I can’t see your code.

hi chris

  thanks for reply 
  
  ain't no code yet , it's the first time i try to script reactor 
  the pproblem is , when i try to examine the rigidbodies properties i get the error from the 
  code in the MXS REF. when i evaluate these subjects 
  
  Interface:RigidBodyInterface 
  and 
  RBcollection : helper 
  
  if i have a box inside a RBCollection and i want to access its  .mass properties for example 
  it never works 

t = Teapot()
$Teapot:Teapot01 @ [0.000000,0.000000,0.000000]
select t
OK
rctMakeRBCollection()
OK
a = $RBCollection01.getRigidObject 1
undefined
–the last line should evaluate as
–<IObject:RigidBodyObject>
–according to the REF.
–the next line “as expected ” in the code will throw error
b = a.rigidBodyInterface
– Unknown property: “rigidBodyInterface” in undefined

Edit : can anyone watching this thread please try the code and give the output ?

The way you access RBCollection Properties changed, in max9, but the changes were undocumented. Here is a thread with the proper way to get/set the values.

-Eric

thanks Eric

stupid me , should’ve found that earlier , would’ve saved me 2 hard days trying to know what is going on !

thanks a zillion !