Jump to content
Developer Wiki and Function Reference Links ×

Move forward node


Recommended Posts

It works for me.
I also made a forward node by changing the script a little:


#V1.0 20200413

class Params(metaclass = Marionette.OrderedClass):
    this = Marionette.Node( 'Forward' )
    this.SetDescription( 'Send an object to the front of the object stacking order.' )
    #Input Ports
    InObj = Marionette.PortIn( vs.Handle(0), 'h')
    InObj.SetDescription( "The object to send to the front." )
    #OIP Controls
    #Output Ports
    OutObj = Marionette.PortOut('h')   
    OutObj.SetDescription( "The object" )
def RunNode(self):
    obj = self.Params.InObj.value
    vs.HMoveForward(obj, True) 
    self.Params.OutObj.value = obj

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...