Profile Picture

Why do I get "no attribute) and "Script not compatible"?

Posted By Kelleytoons Last Year
You don't have permission to rate!

Why do I get "no attribute) and "Script not compatible"?

Author
Message
Kelleytoons
Kelleytoons
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 9.2K, Visits: 22.1K
So while it's unlikely ANYONE will ever reply, I thought I'd ask this question as well (I don't think folks are even writing Python code for iClone anymore, which is too bad as it's insanely useful).

My script (written originally in 7) works but gives me two errors - the first is a warning box that says the script is not compatible with this version of iClone (so you hit "Okay" and it goes away, no harm no foul).   This has been true ever since I've tried writing scripts in 8 so I suspect there's at least one or two people who know the answer (whether they actually come here or not is a whole other issue).

The second, newer error (since the last few releases of 8) is "module (Filename) has no attribute 'rl_plugin_info' and it comes after the script has run.  Again, no harm no foul it's even more benign because if you don't have the console log open you'll never know) and it's certainly true as I have zero idea what the f*** rl_plugin_info is, let alone having some attribute for it, but it would be nice if I could make it go away.

I'll wait three years for someone to answer (like my other question :>).



Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor
Mike "ex-genius" Kelley
jlittle
jlittle
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.9K, Visits: 17.3K
Hi Mike,

Typically I include the following so that code can run on either iC7 or iC8:
rl_plugin_info = None
ap_version=RLPy.RApplication.GetProductVersion()[0]
if ap_version == 7:
    rl_plugin_info = {"ap": "iClone", "ap_version": "7.0"}

elif ap_version == 8:
    rl_plugin_info = {"ap": "iClone", "ap_version": "8.0"}

Of course if you are only writing for iC8 the the following is all you need:
rl_plugin_info = {"ap": "iClone", "ap_version": "8.0"}

This should also fix your second issue.

Regards,
Jeff




Get my Plugin Manager and TaskNotes plugins for iClone.
Check out EZColors and Other products for CTA/CA. EZColors: the easy way to change Render Styled (RS) colors!
See my CTA Tutorials on the YouTube channel CTAStepByStep

mrtobycook
mrtobycook
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)

Group: Forum Members
Last Active: 9 Months Ago
Posts: 425, Visits: 2.7K
Mike I still write plug-ins in Python ! :) I just released a new plugin, it allows us all to import facial animation (finally)

And yes, it’s easy to fix those two issues - I’ll have a look when I get home but I think the previous answer maybe solved it?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - 
https://forum.reallusion.com/uploads/images/d11fc97b-7387-4f19-bb1e-0785.png
virtualfilmer.com | youtube

Kelleytoons
Kelleytoons
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 9.2K, Visits: 22.1K
I think the first answer solved the lesser of the problems (the warning I get in the console log).

I'd love to know the answer to the first (why it's "Not compatible with 8").  Although perhaps that will solve both.  I need to shower now and I'll check it out later this evening.

(But thanks for both of the replies - I don't sell my stuff but a lot of folks DO use it and they will be thrilled to have this finally working for them.  Importing Daz figures is a bitch when you can't get all the various maps in).



Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor
Mike "ex-genius" Kelley
Kelleytoons
Kelleytoons
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 9.2K, Visits: 22.1K
Jeff,

Thanks - that code indeed solved both of my problems.  And, Toby, thanks for visiting and commenting on the thread.  Where the heck were you guys three years ago when I first asked these questions? LOL.

At least my code is not throwing errors (not to get it debugged.  Sigh).



Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor
Mike "ex-genius" Kelley
mrtobycook
mrtobycook
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)

Group: Forum Members
Last Active: 9 Months Ago
Posts: 425, Visits: 2.7K
:)

I found Python iClone scripting incredibly difficult to learn, especially with the help docs so limited and out of date. But I’m still so so glad they have the functionality!!

I often wish I could duplicate myself, just to have time to do what I want to do lol and that includes writing some updated guides to Python iClone 8 scripting 😂

- - - - - - - - - - - - - - - - - - - - - - - - - - - - 
https://forum.reallusion.com/uploads/images/d11fc97b-7387-4f19-bb1e-0785.png
virtualfilmer.com | youtube

Kelleytoons
Kelleytoons
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 9.2K, Visits: 22.1K
Well, I've been coding all my adult life so I actually find Python (and, by extension, the iClone Python) fairly straightforward.  BUT (and you hit upon this) - the crucial weakness is lack of documentation.

I can't say this is the poorest documented language I've seen (remember, I was screwing around with hex code and when BASIC first came on the scene it wasn't exactly well represented) but it's pretty bad and easy to put a lot of folks off.  But there are SO many functions we just need even a one line explanation for.

And then there are the things we don't know if we can do or not - right now I would LOVE to have the ability to autolink textures but it's not worth thrashing around to try and find that because it's very possible it just isn't in there.  

Once upon a time I had the dev's ear (the one who put Python in there) and was able to get a LOT of what I wanted (you would not believe what was first not in there in beta - even just core stuff that HAD to be in there) but alas, I am persona non grata nowadays.  (It didn't help they all went to Discord, about the worst way to run ANY sort of beta).  If RL could have well documented Python I think they could have stood toe to toe with many of the big boys, because I was also on beta for 3D Max and I KNOW that having the ability for users to program for it just MADE their day (I wrote the first walking program for them that kick-started their Biped project).

The ironic thing is I don't even WANT to program anymore - but I keep getting drawn back in, just like Michael Corelone (g).  I do think this last Daz fix is about it for me, though (I'm only doing it because they royally screwed up my Transformer code - if they had stuck with me they would have gotten the secret I finally found and then it would be done right.  Sigh).



Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor
Mike "ex-genius" Kelley
jlittle
jlittle
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)Distinguished Member (7.0K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.9K, Visits: 17.3K
Mike, I'm glad that helped. I must have missed your post 3 years ago or I would have answered it then.

I agree, and it is mostly the reason I stopped programming for iClone, that the documentation just sucks, to put it bluntly.
I don't have hours upon hours to try and figure out the different iClone functions just to write a program that would normally take a short amount of time, but instead turns into too many hours due to the lack of documentation.

Well, I hope you get your transformer fixed up Mike, I know a lot of people use it and I'm sure they are looking forward to the new and updated version.

Jeff




Get my Plugin Manager and TaskNotes plugins for iClone.
Check out EZColors and Other products for CTA/CA. EZColors: the easy way to change Render Styled (RS) colors!
See my CTA Tutorials on the YouTube channel CTAStepByStep

Kelleytoons
Kelleytoons
Posted Last Year
View Quick Profile
Distinguished Member

Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)Distinguished Member (37.8K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 9.2K, Visits: 22.1K
Thanks, Jeff.

Yeah, it's working pretty damn good right now - something that took me at least an hour (bringing in hundreds of textures by hand) now takes less than 30 seconds.  I should have worked on this years ago but I'm glad I have it (and have it working in 8).

I don't think I'll program much else, however - I'm WAY too old to be wasting what little time I have left (except in cases where the result SAVES me a lot of time, as this does).



Alienware Aurora R16, Win 11, i9-149000KF, 3.20GHz CPU, 64GB RAM, RTX 4090 (24GB), Samsung 870 Pro 8TB, Gen3 MVNe M-2 SSD, 4TBx2, 39" Alienware Widescreen Monitor
Mike "ex-genius" Kelley



Reading This Topic