Results 1 to 6 of 6

Thread: How I make in order to create a Null object?

  1. #1

    How I make in order to create a Null object?

    Hello.
    Ok, after to have before created my plgin "hello world" in layout, it is time mean it.
    How I make in order to create a Null object?
    How change its position?
    I using vc++ and lw 9.0
    Please help me.

    Thank you

  2. #2
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,802
    You need to issue Layout commands..
    Read this doc:
    http://www.newtek.com/lightwave/deve.../commands.html
    LightWave Plugins
    Global Materials for LightWave 2019
    Custom plugin writing. Request a quote.

  3. #3
    Ok, tahnk you.
    I have not found no example.
    Only commands

  4. #4
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,802
    To create null, you need to use command "AddNull".. To move object you have to select it and use "Position" or "AddPosition".. There is no other way than using commands..
    LightWave Plugins
    Global Materials for LightWave 2019
    Custom plugin writing. Request a quote.

  5. #5
    Ok.
    Very thank you for your help and your patience for my question.
    But it is possible to have an example anyfile.c.
    Please help me.

  6. #6
    Newbie Member
    Join Date
    Mar 2007
    Location
    France
    Posts
    49
    Here is the code to create a null.

    Code:
    #include <lwserver.h>
    #include <lwgeneric.h>
    #include <lwhost.h>
    #include <stdio.h>
    
    XCALL_( int )
    AddNull( long version, GlobalFunc *global, LWLayoutGeneric *local,
       void *serverData )
    {
       if ( version != LWLAYOUTGENERIC_VERSION )
          return AFUNC_BADVERSION;
    
       local->evaluate( local->data, "AddNull my_null" );
    
       return AFUNC_OK;
    }
    
    ServerRecord ServerDesc[] = {
       { LWLAYOUTGENERIC_CLASS, "AddNull", AddNull },
       { NULL }
    };
    Take care.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •