Isotropix Forums

Reference list creation CID vs. add_attribute strange

Clarisse Scripting related topics

Reference list creation CID vs. add_attribute strange

Unread postby atnreg » Sat Apr 28, 2018 3:27 pm

Hi!

If I make a reference list in CID
list<reference>

The list items can be ordered by dragging them on the list.

BUT if I create the attribute in ScriptedClass in declare_attributes using cls.add_attribute, the list works but trying to drag the items only shows the forbidden icon :o

Why that happens and how to make add_attribute-created ref list manually reorderable?

Thank you :)

Antti
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA GTX 1080ti,Win10
Clarisse 4.0SP7,Houdini,Blender2.83,Fusion360,Onyx,ZBrush,SubstPnt...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 539
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Reference list creation CID vs. add_attribute strange

Unread postby bvaldes » Thu May 03, 2018 4:26 pm

Hi,

Could you provide us the 2nd script? The one in which you add the attribute to the class.

Regards
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 384
Joined: Mon Sep 26, 2016 10:44 am

Re: Reference list creation CID vs. add_attribute strange

Unread postby atnreg » Thu May 03, 2018 9:16 pm

bvaldes wrote:Hi,

Could you provide us the 2nd script? The one in which you add the attribute to the class.

Regards


Actually, now it works :)
The problem was in filter and I had filled the list by script so that caused the problem. Now with proper filter it works fine :)

Thank you!

Antti
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA GTX 1080ti,Win10
Clarisse 4.0SP7,Houdini,Blender2.83,Fusion360,Onyx,ZBrush,SubstPnt...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 539
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland


Return to Scripting