Some template resource data return None

Hi, I want to use drag and drop template canvas from Pefect Abstract, I use to play before in ignition 7.9 and it works very well. But in ignition 8.0 now its not work anymore. I found out 2 things and need help.

  1. I can not get project resource filter by type name (string) anymore.
    getResourceOfType(java.lang.String moduleId, java.lang.String type)
    Any solution for this?

  2. So I do get all project resources and filter by ‘com.inductiveautomation.vision/templates’ but some templates when I use .getData() to return the resource data it is None .
    Below here is the code.
    Thank you.

from com.inductiveautomation.ignition.designer import IgnitionDesigner
context = IgnitionDesigner.getFrame().getContext()
if context is not None:
	p = context.getProject()

        #Down here I cannot get template resources as the same as in ignition v7.9
        #p.getResourcesOfType(VisionClientInterface.VISION_MODULE_ID,"component-template")
	templateResources =  p.getResources()

	#Loop through all the template information, store the template information and assign the templates to the template canvas.
	i = 0
	for index,r in enumerate(templateResources):
		if str(r.getResourceType()) == 'com.inductiveautomation.vision/templates' and not (r.isFolder()):
			resourceID = r.getResourceId()
			fullPath = r.getFolderPath()	
			print fullPath
			print r.getData() # Some templates return None