Notifications
Clear all

[Closed] Scripted Plugin Access

So I’m trying to create scripted plugin image plane…
It’s being linked to a camera node and i would like it to automatically move to the cameras postion…
But “this” doesn’t expose the controller…
Is there a way to access the nodes transform controller?


  [...]
    	parameters main rollout:params
    	(
    		cameraLink type:#node animatable:false ui:linkCamera_btn
    	)
    	[...]
    		on linkCamera_btn picked arg do
    		(
    			if (isvalidnode cameraLink) and (superclassof cameraLink==camera) then
    				(
    					this.plane.parent = cameraLink
    					this.transform = cameraLink.transform					
    					this.pivot=cameraLink.pivot				
    				)  
 		  )
   [...]
    
4 Replies

refs.dependentnodes this firstonly:on

Thanks for your help, I actually got it working using this:

local 	thisPlane=(custAttributes.getOwner this)
local  	thisNode=(refs.dependentnodes thisPlane firstonly:on)
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

you said you have a plugin. not a custom attribute.

yeah sorry i changed it afterwards