Can I create a changeable Linear Transform Node and never appeared in the menu

I created many Linear-Transforms succesfully with this code:
transform = slicer.mrmlScene.AddNewNodeByClass(‘vtkMRMLLinearTransformNode’)
vTransform = vtk.vtkTransform()

transform.SetMatrixTransformToParent(vTransform.GetMatrix())

But there are so many transforms. So, I don’t want it appeard even in data module.
Can I change the code to achive my goials and doesn’t affect the transform function, such as:
they have a NodeID, or editable.

360%E6%88%AA%E5%9B%BE-42702937

Try this:

transformNode.SetHideFromEditors(True)

You probably have to set this before adding to the scene.

HTH

1 Like