Profile Picture

LUA Scripting

Posted By Lord Ashes 10 Years Ago
You don't have permission to rate!
Author
Message
Lord Ashes
Lord Ashes
Posted 10 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.3K, Visits: 1.6K
animagic (5/17/2015)

Once a persona has been loaded, you can export this persona, which will be a  LUA script that you can study as it is readable. Currently user-access to LUA scripting is limited to what used to be AML (which was basically XML). I believe anything you can do in AML you can do in LUA.

Unfortunately, I don't have time right now to go into this further, but there are readable LUA scripts and they can be edited. It's not rocket science.

Also unfortunately, this stupid forum won't let me attach anything, otherwise I could have provided the AML guide.


Yes. I am aware of using LUA Scripts for Personas. I have even written a beginner tutorial how to add motions to a persona, using this method.
However, iClone has a Import Persona, Export Persona and a Import LUA Script. As such, I assumed that the Export/Import Persona would be scripting limited to Personas (basically limited to the stuff you could do in the AML editor) while the Import LUA Script would be scripting that also allows scripting of other iClone elements (not just Personas).

From what I am gattering, the LUA Scripting is there but RL has not provided any information on how to use it because they believe that we can crash iClone by using it improperly. Seems like a silly excuse to me. OK, post the documentation with a Advanced Beta feature disclaimer saying that improper use of this functionality can cause iClone to crash. Done. I mean, does an OS leave out the Format Hard Drive command just because you can erase your OS with it? Through the iClone Content editor you can navigate to props like Chuck and delete those...which will also cause issues with iClone.




"We often compare ourselves to the U.S. and often they come out the best, but they only have the right to bear arms while we have the right to bare breasts"
Bowser and Blue, Busting The Breast
Lord Ashes
Lord Ashes
Posted 10 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.3K, Visits: 1.6K
sw00000p (5/17/2015)

...
• SCRIPT AWAY! :Wow:

I understand that part but that would allow me to script the construction of objects but not iClone stuff. For example, I was hoping to script a bunch of PTP constrains programmatically. As far as I know, if I export an object with constrains then the constrains will not get exported or am I wrong on this? Similarly soft cloth material selections typically can not selected outside iClone, so a script to set them would be great. And so on. There are a number of items which are only available in iClone which would be ideal to script.
 
sw00000p (5/17/2015)

"All there is left to do....Push the Render button!":cool:
ICONE'S DEFAULT RENDER ENGINE IS FAST! ;)

Agreed. Compared to DAZ, the rendering in iClone is fast! Scenes that takes hours (on my PC) to render in DAZ can now be rendered in minutes!



"We often compare ourselves to the U.S. and often they come out the best, but they only have the right to bear arms while we have the right to bare breasts"
Bowser and Blue, Busting The Breast
animagic
animagic
Posted 10 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)Distinguished Member (33.4K reputation)

Group: Forum Members
Last Active: Last Month
Posts: 15.8K, Visits: 31.4K

Once a persona has been loaded, you can export this persona, which will be a  LUA script that you can study as it is readable. Currently user-access to LUA scripting is limited to what used to be AML (which was basically XML). I believe anything you can do in AML you can do in LUA.

Unfortunately, I don't have time right now to go into this further, but there are readable LUA scripts and they can be edited. It's not rocket science.

Also unfortunately, this stupid forum won't let me attach anything, otherwise I could have provided the AML guide.





https://forum.reallusion.com/uploads/images/436b0ffd-1242-44d6-a876-d631.jpg

Pat59 (RL)
Pat59 (RL)
Posted 10 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (7.2K reputation)Distinguished Member (7.2K reputation)Distinguished Member (7.2K reputation)Distinguished Member (7.2K reputation)Distinguished Member (7.2K reputation)Distinguished Member (7.2K reputation)Distinguished Member (7.2K reputation)Distinguished Member (7.2K reputation)Distinguished Member (7.2K reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 1.2K, Visits: 4.9K
It is a request that has already been asked several times since the release of iClone 5
Reallusion had said they would release the LUA script but they expected because they were afraid that developers make iClone crash given the complexity and evolution of this type of script.
As you say it is illogical to have the option to import / export a LUA script that does not know how ...
I'm still the good old AML

Voir mon site : anim'3D



Lord Ashes
Lord Ashes
Posted 10 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.3K, Visits: 1.6K
I have seen a number of people post that there is no scripting in iClone.


First: There is persona (drama) scripting. I have played with this a bit and even wrote a tutorial...but as far as I can see that is just a way to combine iMotions and add them into a character's Persona list of actions.

Second: If there is no scripting then why is there a LUA Script option in the right context menu of props and characters?


"We often compare ourselves to the U.S. and often they come out the best, but they only have the right to bear arms while we have the right to bare breasts"
Bowser and Blue, Busting The Breast
RobertoColombo
RobertoColombo
Posted 10 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (10.8K reputation)Distinguished Member (10.8K reputation)Distinguished Member (10.8K reputation)Distinguished Member (10.8K reputation)Distinguished Member (10.8K reputation)Distinguished Member (10.8K reputation)Distinguished Member (10.8K reputation)Distinguished Member (10.8K reputation)Distinguished Member (10.8K reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 1.6K, Visits: 3.0K
Hi,

unfortunately iClone does not support (yet..?) a scripting engine similar to what you can find, for example, with Phyton in Blender.
RL has shown several times the intention to offer a set of API but so far we haven't seen anything.
My thinking is that RL will offer it one day, but not for free... kind of similarity with 3DX Pro & Pipeline.
I feel that iClone could become 1000x more powerful if they would allow us to create scripting but also tools & interfaces, but I guess they shall have their own marketing reasons to not hit this road yet.

Cheers

  Roberto




My PC:
OS: Windows 10 Pro English 64-bit / CPU: Intel i7-9700 3.6GHz / MB: ASUS ROG Strix Z390  RAM: 32GB DDR4 2.6GHz / HD: 2TB+3TB  /  
SSD: 2x512GB Samsung 860 EVO + 1x2TB Samsung
VB: Palit GTX2080 TI GamingPro 11GB / AB: embedded in the MB and VB (audio from the MOTU M4 I/F) / DirectX: 12

Lord Ashes
Lord Ashes
Posted 10 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.3K, Visits: 1.6K
When right clicking on content in iClone 6 there is an option for LUA Script.
I have not scripted with LUA before but a quick search showed multiple pages that can teach you the syntax and functions of LUA.
However, I have not been able to find a reference that indicates how LUA scripting can be used in conjunction with iClone.
I imagine that there needs to be a namespace or some other type of correlation between iClone objects and LUA functions so that the script can actually generate some iClone effects. Searching the forum for LUA scripting does not seem to generate any useful results and searching LUA scripting on the world wide web does get results for LUA scripting but not as it applied to iClone.
Can someone point me to some documentation or tutorial that shows how LUA scripting can be applied to iClone?
What is it that one can script in LUA with respect to iClone?


"We often compare ourselves to the U.S. and often they come out the best, but they only have the right to bear arms while we have the right to bare breasts"
Bowser and Blue, Busting The Breast



Reading This Topic