HDK :: disable parameters in DOP [SOLVED]
3696
7
2
morzh
Member
66 posts
Joined: Oct. 2008
Offline
Feb. 1, 2013 2:43 p.m.
I have a class, derived from SIM_SingleSolver and SIM_OptionsUser. How can I disable/enable my params ? I guess I should use PRM_Conditional. But now have no idea how to use it. It would be great to see some examples.
Edited by - March 22, 2013 13:56:24
Feb. 24, 2013 3:37 p.m.
Hi! Same problem here. Can't find a way to disable my parms in custom dop object. Any help please?
Aleksei Rusev Sr. Graphics Tools Engineer @ Nvidia
Feb. 25, 2013 12:22 a.m.
Try adding a Null in the DOP network ( do not connect it to any chained network) and make it's display on.
morzh
Member
66 posts
Joined: Oct. 2008
Offline
Feb. 25, 2013 2:50 a.m.
mohitsherman Try adding a Null in the DOP network ( do not connect it to any chained network) and make it's display on.Frankly speaking, I can hardly imagine, how NULL DOP is connected to PRM_Conditional class
March 14, 2013 6:39 a.m.
i had to dig deep, and the code is from H10, i havent had a chance to test it: static PRM_DisableList dl_theGeoTri; dl_theGeoTri.addInfo()->addInfo(“nameOfAttribute”,“value”,“!=” /*operation*/); PRM_Template(PRM_TOGGLE_J, 1, &theGeoTri, &defOne,0,0,0,0,1,“helptext”,&dl_theGeoTri), Cheers Infernal
morzh
Member
66 posts
Joined: Oct. 2008
Offline
March 15, 2013 4:52 a.m.
Thank you, but i have two questions. “value” is the value of what ? And operation is simply something like this : “!= 0”
March 20, 2013 5:54 p.m.
sorry for the delay, an example would be myDisableList..addInfo()->addInfo(“type”,“box”,“==”); the equivalent in the type properties would be { type == box } or myDisableList.addInfo()->addInfo(“mytgl” ,“1”,“==”); is the equivalent to { mytgl == 1 } Cheers Infernal
morzh
Member
66 posts
Joined: Oct. 2008
Offline
March 22, 2013 12:39 p.m.
THANK YOU !!!!! HDK 12.xx docs says that class PRM_DisableList is depricated, but it works. Instead of this class one could use PRM_Conditional, just replacing PRM_DisableList with PRM_Conditional