Page 1 of 1

ANyone help? ActivateNode Lua Code

Unread postPosted: Sun Jun 18, 2017 3:37 pm
by ChrisOnline
Can anyone help me with this please? I want to de-activate a node from the .GeoPcDx file

The node exists in the <TransforName> list in the .Geo file, so I know that it is a valid node to work with

And I know the code is Call ( "*:ActivateNode", "[nodename]", 0). But I can't for the life of me get it to work.

So please, assuming this is the action required in my .lua file, what function (and maybe parameters) are needed around this line to make it work?

So by that I mean, assuming this is the only action required (and assuming there is no prior lua code to "require")

xxxxxxxx
Call ( "*:ActivateNode", "[nodename]", 0)
end

What does "xxxxxxxx" need to be, in detail?

Thanks for any help, tearing my hair out here :)

Chris

Re: ANyone help? ActivateNode Lua Code

Unread postPosted: Sun Jun 18, 2017 3:56 pm
by bnsfsubdivision
ChrisOnline wrote:Can anyone help me with this please? I want to de-activate a node from the .GeoPcDx file

The node exists in the <TransforName> list in the .Geo file, so I know that it is a valid node to work with

And I know the code is Call ( "*:ActivateNode", "[nodename]", 0). But I can't for the life of me get it to work.

So please, assuming this is the action required in my .lua file, what function (and maybe parameters) are needed around this line to make it work?

So by that I mean, assuming this is the only action required (and assuming there is no prior lua code to "require")

xxxxxxxx
Call ( "*:ActivateNode", "[nodename]", 0)
end

What does "xxxxxxxx" need to be, in detail?

Thanks for any help, tearing my hair out here :)

Chris

Code: Select all
function Initialise ()
 
Call( "*:ActivateNode","Node_Name", 1)

Call ( "BeginUpdate" )
   
end

Re: ANyone help? ActivateNode Lua Code

Unread postPosted: Sun Jun 18, 2017 4:41 pm
by ChrisOnline
Many thanks, but sadly that doesn't work. I know it should, and I already tried many combinations, hence the post.

This is actually a reskin of a UK proprietary item where I am trying to disable decals which are built into the .Geo file. I have disabled the original compiled lua, so I know there is nothing to interfere with mine, but nothing seems to work. Total mystery.

But thanks again for your response

Chris

Re: ANyone help? ActivateNode Lua Code

Unread postPosted: Sun Jun 18, 2017 10:38 pm
by PapaXpress
Is it a child object?

Re: ANyone help? ActivateNode Lua Code

Unread postPosted: Mon Jun 19, 2017 5:17 am
by ChrisOnline
Only in that it is a Node within the .GeoPcDx file, not in the .bin file. And it is in the <TransformName > list within the .Geo file

Chris