HDK :: disable parameters in DOP [SOLVED]
3693
7
2
morzh
Member
66 posts
Joined: 10月 2008
Offline
2013年2月1日 14:43
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 - 2013年3月22日 13:56:24
2013年2月24日 15:37
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
2013年2月25日 0:22
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: 10月 2008
Offline
2013年2月25日 2:50
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
2013年3月14日 6:39
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: 10月 2008
Offline
2013年3月15日 4:52
Thank you, but i have two questions. “value” is the value of what ? And operation is simply something like this : “!= 0”
2013年3月20日 17:54
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: 10月 2008
Offline
2013年3月22日 12:39
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