Notifications
Clear all

[Closed] Scripted Plugin: move/transform with own parameter

Again with Scripted Plugin, don’t mind it’s an object, helper, manipulator or other node.
Is there a way to move or transform the node once created through an own parameter, say, a spinner?
this.pos or this.transform throws an error; nodeTM doesn’t seem to work after creation; assign a script controller to transform is not possible (at least to me) as I can’t access the node transform.
Am I missing something?

What I want: I’m creating a manipulator that I associate to a splineShape on creation. Once created, I want to move it following this path by changing a spinner value. Is it possible?

3 Replies

Scripted manipulator exposes a ‘node’ value for the node that owns the target it is manipulating.

If it’s standalone manipulator and you’d prefer to move the whole node and not just the drawing, you can get the owning node with refs.dependentNodes this firstOnly:on

OMG! I’ve used it thousand of times!
Thanks a lot Vojtech.
it’ been a long time since I did my last one.

there are another too opportunities:
#1 self-manipulator object
#2 helper that extends manipulator

if you have any questions you are welcome