Jump to content
Developer Wiki and Function Reference Links ×

Move forward node


Onink

Recommended Posts

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

 

#MRoth
#V1.0 20200413

@Marionette.NodeDefinition
class Params(metaclass = Marionette.OrderedClass):
#APPEARANCE
    #Name
    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" )
    
#BEHAVIOR
    
def RunNode(self):
    #inputs
    obj = self.Params.InObj.value
    
    #script
    vs.HMoveForward(obj, True) 
    
    #outputs
    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.

Guest
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...