Scripted Plugin - Node Access

Scripted Plugin - Node Access

Anonymous
Not applicable
462 Views
2 Replies
Message 1 of 3

Scripted Plugin - Node Access

Anonymous
Not applicable
I have created a scripted helper plugin that extends a dummy object, however on the creation of this object i want to use the setTransformLockFlags() function, though this does not seem possible as you cannot access the newly created 'node' only the base object, is there another way to access the TransformLockFlags through a base object's properties?
0 Likes
463 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Call setTransformLockFlags from attachedToNode method of your plugin.
Just for example I post here a plugin that I wrote to "replace" the Point helpers in my scenes.
plugin simpleObject NullMesh name:"NullMesh" 
classID:#(0x54d46cf3, 0x5ed54ad6)
category:"Scripted Primitives"
invisible:true version:1
(
on buildMesh do
(
setMesh mesh numverts:0 numfaces:0
)
on attachedToNode obj do
(
obj.renderable = off
obj.wirecolor = black
)
)
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks for the help.
0 Likes