When using scripts in perspective on components or in script transforms I use system.perspective.print(). I'm not sure if that's what you meant by "print" or if you meant the python built in print.
A good reference for how "print" works in all of Ignition.