original_docstring: Sets common point prototype attributes.
  
          Args:
              geom: The prototype prim to set attributes for.
              instancer: The prototype's instancer.
              mtl_id: The unique id for the material for this prototype.
          
docstring: Sets common point prototype attributes.
docstring_tokens: Sets common point prototype attributes .
code: def _set_common_point_attrs(self, geom, instancer, mtl_id):
          """Sets common point prototype attributes.
  
          Args:
              geom: The prototype prim to set attributes for.
              instancer: The prototype's instancer.
              mtl_id: The unique id for the material for this prototype.
          """
          # Move voxel pivot to the front-bottom-left like MV voxels
          geom.AddTranslateOp().Set((0.5, 0.5, 0.5))
  
          vox_mtl = VoxBaseMaterial.get(mtl_id)
          geom.CreateDisplayColorAttr([vox_mtl.color[0:3]])
          if isinstance(vox_mtl, VoxGlassMaterial):
              geom.CreateDisplayOpacityAttr([vox_mtl.get_opacity()])
          if self.use_physics:
              physics_apis = Sdf.TokenListOp.Create(["PhysicsRigidBodyAPI", "PhysicsCollisionAPI"])
              shape_prim = geom.GetPrim()
              shape_prim.SetMetadata("apiSchemas", physics_apis)
              shape_prim.CreateAttribute("physics:collisionEnabled", Sdf.ValueTypeNames.Bool).Set(1)
              shape_prim.CreateAttribute("physics:kinematicEnabled", Sdf.ValueTypeNames.Bool).Set(0)
              shape_prim.CreateAttribute("physics:rigidBodyEnabled", Sdf.ValueTypeNames.Bool).Set(1)
              shape_prim.CreateAttribute("physics:startsAsleep", Sdf.ValueTypeNames.Bool).Set(1)
  
          instancer.GetPrototypesRel().AddTarget(geom.GetPath())
code_tokens: def _set_common_point_attrs ( self , geom , instancer , mtl_id ) : geom . AddTranslateOp ( ) . Set ( ( 0.5 , 0.5 , 0.5 ) ) vox_mtl = VoxBaseMaterial . get ( mtl_id ) geom . CreateDisplayColorAttr ( [ vox_mtl . color [ 0 : 3 ] ] ) if isinstance ( vox_mtl , VoxGlassMaterial ) : geom . CreateDisplayOpacityAttr ( [ vox_mtl . get_opacity ( ) ] ) if self . use_physics : physics_apis = Sdf . TokenListOp . Create ( [ "PhysicsRigidBodyAPI" , "PhysicsCollisionAPI" ] ) shape_prim = geom . GetPrim ( ) shape_prim . SetMetadata ( "apiSchemas" , physics_apis ) shape_prim . CreateAttribute ( "physics:collisionEnabled" , Sdf . ValueTypeNames . Bool ) . Set ( 1 ) shape_prim . CreateAttribute ( "physics:kinematicEnabled" , Sdf . ValueTypeNames . Bool ) . Set ( 0 ) shape_prim . CreateAttribute ( "physics:rigidBodyEnabled" , Sdf . ValueTypeNames . Bool ) . Set ( 1 ) shape_prim . CreateAttribute ( "physics:startsAsleep" , Sdf . ValueTypeNames . Bool ) . Set ( 1 ) instancer . GetPrototypesRel ( ) . AddTarget ( geom . GetPath ( ) )
short_docstring: Sets common point prototype attributes.
short_docstring_tokens: Sets common point prototype attributes .
comment: """Sets common point prototype attributes.
  
          Args:
              geom: The prototype prim to set attributes for.
              instancer: The prototype's instancer.
              mtl_id: The unique id for the material for this prototype.
          """$SEP$# Move voxel pivot to the front-bottom-left like MV voxels
  