Bear with me, I am still new to python in blender, I apologize, I am not very good with words or is capable of explaining the issues I am having or solutions I am looking for. So instead of struggling with words, I'll use illustration at most of time.
I started off with creating Panel that displays two pointerPropteries coming from Array and Curve modifier.
...and the script.
class PROJECTX(bpy.types.Panel):
"""Creates a Panel in the Object properties window"""
bl_label = "PANEL"
bl_idname = "POINTERTEST"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = "PJTX"
def draw(self, context):
layout = self.layout
scene = context.scene
col = layout.column()
col.prop(bpy.context.active_object.modifiers[r"Array"],'curve', text=r"Curve")
col.prop(bpy.context.active_object.modifiers[r"Curve"], 'object', text=r"Curve Object")
Now, Instead of two PointerProperies inside UI panel, I was hoping I could use single pointer. I was wondering if its possible to add operation that can have single pointer from Panel to assign direct to both modifiers' (array and curve) pointer at once whenever it pick curve in the scene? If so, how could I write a script for it?
I was looking at layout.prop_search() which I picked up from https://blender.stackexchange.com/a/101301/142719 and https://docs.blender.org/api/current/bpy.types.UILayout.html and thought maybe this can be used in Panel and assign directly to pointers in both modifiers whenever it pick curve in scene. Unfortunately I must admit I don't have better insight on .prop_Search() or PointerProperites since there aren't sufficent information on this. I was hoping I could collect some information to get me started. Any suggestions? Thanks in advance

