AlchemistRS AlchemistRS

AlchemistRS

About Me

Expertise
Not Specified
Location
Not Specified
Website

Connect

Recent Forum Posts

What is Houdini's equivalent to Maya's objExists() Jan. 2, 2016, 11:09 p.m.

Thanks SYmek I tried what you said and a few others from the link you gave me,but did not work. Here is the last piece at the end of code that I need to convert out of the 1998 lines. I did not write the code just converting it.Symek can you take a look please?





mc = hou

if mc.objExists('HDR_IMG'):
renderResolutionValue = mc.getAttr('HDR_IMG.renderResolution')
else:
renderResolutionValue = 2
if mc.objExists('HDR_IMG'):
renderQualityValue = mc.getAttr('HDR_IMG.qualityPreset')
else:
renderQualityValue = 2
if mc.objExists('HDR_IMG'):
plateModeValue = mc.getAttr('HDR_IMG.plateMode')
else:
plateModeValue = 1
if mc.objExists('HDR_IMG'):
envModeValue = mc.getAttr('HDR_IMG.envMode')
else:
envModeValue = 1
if mc.objExists('HDR_IMG'):
colorMappingModeValue = mc.getAttr('HDR_IMG.cmMode')
else:
colorMappingModeValue = 2

What is Houdini's equivalent to Maya's objExists() Jan. 2, 2016, 1:58 p.m.

Converting some Maya scripts to Houdini, but can't seem to find Houdini's equivalent to Maya's objExists(). Anyone here know what i can use to replace objExist()? Thanks

How Can I Create A Light Switch from A Set of Lights? Dec. 3, 2015, 4:04 a.m.

Thanks,

OwlYzarc My main focus was really to be able to switch between a set of lights. The HDRI thing was just something extra that I wanted in the hda. This rig is just to build materials for Arnold. The HDRIs are always in the same spot so they will load in any scene I add the hda. The asset fully functional if guys decide to use it just add your own HDRIs.

Arctor
Thanks again for your help