PDA

View Full Version : :help: how i can creat small plugin in lw



abdelkarim
01-23-2011, 10:47 AM
plz i need help . i have no idea how i can creat plugin in lightwave. i have many idea or good think . i want to just combine them.

for exemple i want to creat just button he able me to do boolean or somethiing like that with 2 layer.

how i can creat my plugin to do this ???! plz its just an exemple ?


pzl plz plz help ??!!
:help:

other exemple . i have box and i want to use many command on it. but in one button . for exemple . i want used (knif , bevel , extrude ex..)

how i can do this.


thnx for help.


salam.

vfxdomain
01-24-2011, 09:13 AM
plz i need help . i have no idea how i can creat plugin in lightwave. i have many idea or good think . i want to just combine them.

for exemple i want to creat just button he able me to do boolean or somethiing like that with 2 layer.

how i can creat my plugin to do this ???! plz its just an exemple ?


pzl plz plz help ??!!
:help:

other exemple . i have box and i want to use many command on it. but in one button . for exemple . i want used (knif , bevel , extrude ex..)

how i can do this.


thnx for help.


salam.

Well, to create plugins or scripts you obviously need to know a thing or two about programming in general, if you already have some coding experience in any language, then you may start coding for LW relatively quick, after spending a day or two reading LW scripting docs. If you have no idea about programming at all, then it may take some time to create usable code.
But the good thing is, that your tasks (things you wrote about) looks like something that probably can be done via macros. Try to use saved command list from modeller, check commands section of Utilities tab in layout and modeller, also try LScript commander and LW Macrorecorder in layout.

abdelkarim
01-24-2011, 10:27 AM
thnx vfx domain . yep i have idea . i small programmer with delphi and c++ . i learn lscript user guide but i think . they have problem on it. when i try to write on lscript in lw the code in pdf .

hello world. it not work. error . i just copy and past the code from pdf and i save it Hello.ls



but . how i can use marco or how i can check commands section in layout as lightwave 8. in lightwave 9 i think its differnet i most do somthing ?

UnCommonGrafx
01-24-2011, 10:38 AM
Since you have experience, I would suggest the following:
Open up your lscript directory and take a look at a few of the *.ls files. You can dissect a lot out of these files.

Modeler has macro commander for recording your motions, I believe.
Good luck.

vfxdomain
01-24-2011, 11:37 AM
thnx vfx domain . yep i have idea . i small programmer with delphi and c++ . i learn lscript user guide but i think . they have problem on it. when i try to write on lscript in lw the code in pdf .

hello world. it not work. error . i just copy and past the code from pdf and i save it Hello.ls



but . how i can use marco or how i can check commands section in layout as lightwave 8. in lightwave 9 i think its differnet i most do somthing ?

For hello world, this is a code:

For Modeller:

@version 2.2
@warnings
@script modeler

main
{
info("Hello World!");
}


For Layout:

@version 2.2
@warnings
@script generic

generic
{
info("Hello World!");
}

Before "info("Hello World!");" line, insert "Tab"!

papou
01-25-2011, 05:50 PM
AbdelKarim, t'a boite PM est pleine, je ne peux pas te repondre en message privé.
(his PM box is full, i have to answer here, sorry about that)

Donc voici ma reponse ici:

Salut abdelkarim!
C'est pas evident de faire un plugin.
C'est vraiment pas un truc qui se fait hop comme ca.
Si tu veux faire un script ou un plugin, tu en as pour plusieurs mois d'acharnement.
Car personne pourra vraiment t'aider plus que toi meme.
Surtout si tes questions sont trop generale.
Si elles sont precises et techniques, tu devrais obtenir de l'aide.

J'ai vu que tu as fait un peu de programmation et que tu souhaites faire un plugin pour le modeler.

Ce que je peux te donner comme info:
Dans lightwave, tu peux faire:
- du lscript: Plus simple, moins puissant, moins rapide.
- du C: Plus puissant, plus compliqué.

En general quand on veut modifier une geometrie comme tu le souhaites (knife etc...) on fait du C car l'execution sera plus rapide. Et la je ne peux pas t'aider. Je n'y connais rien.
Les plugins sont des fichier *.p ( c'est des dll)

Moi j'ai appris le lscript en analysant le scripts qui existe sur internet. y'en a pleins. faut bien chercher quand meme. Ce sont des fichier *.ls
Les fichiers *.lsc sont du lscript mais compactés et illisible.

Si tu me decris exactement ce que tu veux faire comme plugin, je pourrais te dire si ca existe deja, ou si c'est faisable en lscript. Je pourrais aussi te diriger vers des lscripts qui traitent de choses similaires.

Sinon:

La bible de lscript par Dodgy:
http://www.mikegreen.name/Lscript/Lscript%20Index.html

SDK et manuels:
ftp://ftp.newtek.com/products/LightWave/SDK

des scripts a analyser:
http://www.mikegreen.name/
http://www.interialabs.de/lw/lscript/index.html
etc..

bon courage, bons scripts!

abdelkarim
05-01-2011, 02:10 PM
merci bcp . papou . et vive La france et paris biensure :D


bye .


salut c ta besoin daide interior or exterior je ss la . merci bcp .


bye salut.

abdelkarim
05-15-2011, 11:05 AM
thnx vfx domain :D