Notifications
Clear all

[Closed] Using controllers with scripted plugins – "this node"

and of course there is a better and cleaner way to do the same. but I like to keep it for myself.

Thank you for example DenisT, but what is NodeMonitor? Even uncle google haven’t tell me that.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

it’s an old version of NodeTransformMonitor which used to make weak references to node.
instead of the NodeTransformMonitor the NodeMonitor sends less messages to the system as I know.

I love your tips because of your pro level. I can’t understand two things:

Why you have used:
this.params.pickTarget.text = “txt”
not just
pickTarget.text = “txt”

Why


 c = obj.rotation.controller = createinstance LookAt_Constraint target_axis:2
 c.appendtarget node 100

instead of:

obj.rotation.controller = createinstance LookAt_Constraint target_axis:2
obj.rotation.controller.appendtarget node 100

Any preformance reason or just way to type “cleaner” code?

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

because we have to point to the specific rollout control. if you use only pickTarget the says that there is no such property.

it’s cleaner. you set only the target in this sample but often we have to set many parameters of the controller. and the typing only one letter ‘c’ is saving me time

Page 2 / 2