I'm writing a script that will duplicate objects along a path. I need some way to make sure the path was selected first.
Basically what I want to do is
if (selected object is not a curve)
error message
but I can't figure out how write the code to return a boolean value if it is or isn't a curve. The Command objectType only returns a string "transform".